Commit 3c08f4a4 authored by ZhiPeng Lu's avatar ZhiPeng Lu Committed by Greg Kurz
Browse files

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: default avatarZhipeng Lu <lu.zhipeng@zte.com.cn>
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent 403a905b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;