diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:00:49 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 16:00:49 +0100 |
commit | 25ebdcd50685c4364fc852feca201f8335d47b52 (patch) | |
tree | 436db46b86ed21d871aa062ccd273a01729a2ee8 /daemon | |
parent | 107a76ad3680fda05cfd58136d62eeab4e77a8dc (diff) | |
download | libguestfs-25ebdcd50685c4364fc852feca201f8335d47b52.tar.gz libguestfs-25ebdcd50685c4364fc852feca201f8335d47b52.tar.xz libguestfs-25ebdcd50685c4364fc852feca201f8335d47b52.zip |
Fix memory leak in daemon/mount.c:do_mount_vfs.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c index 4955fcf3..67b548ef 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); |