mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Fix memory leak in daemon/mount.c:do_mount_vfs.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user