From: Richard W.M. Jones Date: Wed, 8 Jun 2011 21:25:21 +0000 (+0100) Subject: Coverity: Don't leak argv arrays. X-Git-Tag: 1.10.4~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7e21daa79c195c7e88afc50531e89cbd469ce5a1;p=libguestfs.git Coverity: Don't leak argv arrays. (cherry picked from commit 869c11b30c72c57e48dd63c4641087a06abe80d5) --- diff --git a/daemon/lvm.c b/daemon/lvm.c index 284e580..dbca20b 100644 --- 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 ();