Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
91c908ee
Commit
91c908ee
authored
May 07, 2013
by
Dwight Engen
Committed by
Stéphane Graber
May 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverity: free malloc'ed memory in error case
Signed-off-by:
Dwight Engen
<
dwight.engen@oracle.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
ab81cef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bdev.c
src/lxc/bdev.c
+2
-0
No files found.
src/lxc/bdev.c
View file @
91c908ee
...
@@ -1203,6 +1203,8 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
...
@@ -1203,6 +1203,8 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
if
(
do_rsync
(
odelta
,
ndelta
)
<
0
)
{
if
(
do_rsync
(
odelta
,
ndelta
)
<
0
)
{
free
(
osrc
);
free
(
ndelta
);
ERROR
(
"copying overlayfs delta"
);
ERROR
(
"copying overlayfs delta"
);
return
-
1
;
return
-
1
;
}
}
...
...
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