OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
403a905
)
fsdev: fix memory leak in main()
author
ZhiPeng Lu
<lu.zhipeng@zte.com.cn>
Wed, 9 Aug 2017 14:32:46 +0000
(16:32 +0200)
committer
Greg Kurz
<groug@kaod.org>
Tue, 5 Sep 2017 12:01:16 +0000
(14:01 +0200)
@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>
fsdev/virtfs-proxy-helper.c
patch
|
blob
|
history
diff --git
a/fsdev/virtfs-proxy-helper.c
b/fsdev/virtfs-proxy-helper.c
index
6c066ec
..
8e48500
100644
(file)
--- 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;