X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fmount.c;h=be289dade5865327f65bea16481c733c318b1173;hp=a379d39e6b330bd425805b7002bace012bd922a1;hb=7f16c346bbeba2f2fe3c31ccb85158178a284d84;hpb=9b945cfa781a0f25c3b81239e2fcddceeede6e44 diff --git a/daemon/mount.c b/daemon/mount.c index a379d39..be289da 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -116,6 +116,7 @@ do_mount_vfs (const char *options, const char *vfstype, return -1; } + free (error); return 0; } @@ -352,7 +353,7 @@ do_mount_loop (const char *file, const char *mountpoint) } buf = sysroot_path (file); - if (!file) { + if (!buf) { reply_with_perror ("malloc"); free (mp); return -1; @@ -367,6 +368,7 @@ do_mount_loop (const char *file, const char *mountpoint) return -1; } + free (error); return 0; }