Fix resource leak 74/225174/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Feb 2020 04:06:56 +0000 (13:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Feb 2020 04:06:56 +0000 (13:06 +0900)
Change-Id: Ifcc0ba84a4f176ea3a3ce144da2ca18498ad2ea8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch_with_result.c

index 6d115be..1b07455 100644 (file)
@@ -848,6 +848,7 @@ static  int __send_request_with_callback(int cmd, const char *appid, bundle *b,
 
        if (__aul_error_info_add_watch(fd, info) < 0) {
                _E("Failed to add resultcb watch");
+               __destroy_aul_error_info(info);
                if (reply_cb) {
                        r_info = __pop_aul_reply_info(seq_num);
                        if (r_info)