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:
107a76a
)
Fix memory leak in daemon/mount.c:do_mount_vfs.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 29 Jun 2009 15:00:49 +0000
(16:00 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 29 Jun 2009 15:00:49 +0000
(16:00 +0100)
daemon/mount.c
patch
|
blob
|
history
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);