Fix memory leak in daemon/mount.c:do_mount_vfs.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 29 Jun 2009 15:00:49 +0000 (16:00 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 29 Jun 2009 15:00:49 +0000 (16:00 +0100)
daemon/mount.c

index 4955fcf..67b548e 100644 (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);