git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak in daemon/mount.c:do_mount_vfs.
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
4955fcf
..
67b548e
100644
(file)
--- 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);