Fix memory leak 50/172150/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 12 Mar 2018 07:39:58 +0000 (16:39 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 12 Mar 2018 07:39:58 +0000 (16:39 +0900)
Change-Id: I06da714e9ee2cccd422c556c1c15e91a4a8df4fd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkgmgr-server.c

index 7a024d9..846a330 100644 (file)
@@ -729,6 +729,7 @@ static char **__generate_argv(const char *args)
        if (FALSE == ret_parse) {
                ERR("Failed to split args: %s", args);
                ERR("messsage: %s", gerr->message);
+               g_error_free(gerr);
                exit(1);
        }