aboutsummaryrefslogtreecommitdiff
path: root/fsdev/virtfs-proxy-helper.c
diff options
context:
space:
mode:
authorZhiPeng Lu <lu.zhipeng@zte.com.cn>2017-08-09 16:32:46 +0200
committerGreg Kurz <groug@kaod.org>2017-09-05 14:01:16 +0200
commit3c08f4a4335c325295d738d4090665b8617ab599 (patch)
tree1f0bbbc56b03805b52a4424ac249d8bcb81852d9 /fsdev/virtfs-proxy-helper.c
parent403a905b03d48187df1e1392bfa3e303eeefe892 (diff)
downloadqemu-3c08f4a4335c325295d738d4090665b8617ab599.zip
qemu-3c08f4a4335c325295d738d4090665b8617ab599.tar.gz
qemu-3c08f4a4335c325295d738d4090665b8617ab599.tar.bz2
fsdev: fix memory leak in main()
@rpath and @sock_name are not freed and leaked. [groug, not really leaked since the program exits just after that. But it is always good practice to free allocated memory] Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn> Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'fsdev/virtfs-proxy-helper.c')
-rw-r--r--fsdev/virtfs-proxy-helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 6c066ec..8e48500 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -1162,6 +1162,8 @@ int main(int argc, char **argv)
process_requests(sock);
error:
+ g_free(rpath);
+ g_free(sock_name);
do_log(LOG_INFO, "Done\n");
closelog();
return 0;