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>
stable-2.11
ZhiPeng Lu 2017-08-09 16:32:46 +02:00 committed by Greg Kurz
parent 403a905b03
commit 3c08f4a433
1 changed files with 2 additions and 0 deletions

View File

@ -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;