summaryrefslogtreecommitdiffstats
path: root/daemon/mount.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-06-08 22:16:59 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-06-09 10:53:23 +0100
commit3135b8c378f9f98ae66e37fd79d305764334980d (patch)
tree2f07f980cb24e5455644b1f216be7de706c72c70 /daemon/mount.c
parent7fae594df719d1d81a043c4d0280b359f750facb (diff)
downloadlibguestfs-3135b8c378f9f98ae66e37fd79d305764334980d.tar.gz
libguestfs-3135b8c378f9f98ae66e37fd79d305764334980d.tar.xz
libguestfs-3135b8c378f9f98ae66e37fd79d305764334980d.zip
Coverity: Don't leak error strings.
Diffstat (limited to 'daemon/mount.c')
-rw-r--r--daemon/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index 098283a0..be289dad 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;
}
@@ -367,6 +368,7 @@ do_mount_loop (const char *file, const char *mountpoint)
return -1;
}
+ free (error);
return 0;
}