From: Richard W.M. Jones Date: Mon, 29 Jun 2009 15:00:49 +0000 (+0100) Subject: Fix memory leak in daemon/mount.c:do_mount_vfs. X-Git-Tag: 1.0.54~3^2~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=25ebdcd50685c4364fc852feca201f8335d47b52;p=libguestfs.git Fix memory leak in daemon/mount.c:do_mount_vfs. --- diff --git a/daemon/mount.c b/daemon/mount.c index 4955fcf..67b548e 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -71,6 +71,7 @@ do_mount_vfs (char *options, char *vfstype, else r = command (NULL, &error, "mount", "-o", options, device, mp, NULL); + free (mp); if (r == -1) { reply_with_error ("mount: %s on %s: %s", device, mountpoint, error); free (error);