Fix memory leak in daemon/mount.c:do_mount_vfs.

This commit is contained in:
Richard W.M. Jones
2009-06-29 16:00:49 +01:00
parent 107a76ad36
commit 25ebdcd506

View File

@@ -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);