From 3c08f4a4335c325295d738d4090665b8617ab599 Mon Sep 17 00:00:00 2001 From: ZhiPeng Lu Date: Wed, 9 Aug 2017 16:32:46 +0200 Subject: 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 Signed-off-by: Greg Kurz --- fsdev/virtfs-proxy-helper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fsdev') diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 6c066ec9a0..8e48500dd5 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; -- cgit v1.2.3-55-g7522