Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
ab59e7d3
Commit
ab59e7d3
authored
Jul 11, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipes: Plug memory leak on pipd data image EOF
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
906f0813
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
pipes.c
pipes.c
+6
-1
No files found.
pipes.c
View file @
ab59e7d3
...
@@ -40,13 +40,13 @@ static void show_saved_pipe_fds(struct pipe_info *pi)
...
@@ -40,13 +40,13 @@ static void show_saved_pipe_fds(struct pipe_info *pi)
int
collect_pipe_data
(
int
img_type
,
struct
pipe_data_rst
**
hash
)
int
collect_pipe_data
(
int
img_type
,
struct
pipe_data_rst
**
hash
)
{
{
int
fd
,
ret
;
int
fd
,
ret
;
struct
pipe_data_rst
*
r
=
NULL
;
fd
=
open_image_ro
(
img_type
);
fd
=
open_image_ro
(
img_type
);
if
(
fd
<
0
)
if
(
fd
<
0
)
return
-
1
;
return
-
1
;
while
(
1
)
{
while
(
1
)
{
struct
pipe_data_rst
*
r
;
u32
off
;
u32
off
;
ret
=
-
1
;
ret
=
-
1
;
...
@@ -73,6 +73,11 @@ int collect_pipe_data(int img_type, struct pipe_data_rst **hash)
...
@@ -73,6 +73,11 @@ int collect_pipe_data(int img_type, struct pipe_data_rst **hash)
r
->
pde
->
pipe_id
,
ret
);
r
->
pde
->
pipe_id
,
ret
);
}
}
if
(
r
)
{
xfree
(
r
->
pde
);
xfree
(
r
);
}
close
(
fd
);
close
(
fd
);
return
ret
;
return
ret
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment