git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3135b8c
)
Coverity: Don't leak argv arrays.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 8 Jun 2011 21:25:21 +0000
(22:25 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 9 Jun 2011 09:53:38 +0000
(10:53 +0100)
daemon/lvm.c
patch
|
blob
|
history
diff --git
a/daemon/lvm.c
b/daemon/lvm.c
index
284e580
..
dbca20b
100644
(file)
--- a/
daemon/lvm.c
+++ b/
daemon/lvm.c
@@
-223,10
+223,12
@@
do_vgcreate (const char *volgroup, char *const *physvols)
if (r == -1) {
reply_with_error ("%s", err);
free (err);
+ free (argv);
return -1;
}
free (err);
+ free (argv);
udev_settle ();
@@
-512,10
+514,12
@@
do_vg_activate (int activate, char *const *volgroups)
if (r == -1) {
reply_with_error ("vgchange: %s", err);
free (err);
+ free (argv);
return -1;
}
free (err);
+ free (argv);
udev_settle ();