projects
/
platform
/
core
/
api
/
app-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0cdcd9
)
Fix resource leak
77/211677/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 8 Aug 2019 05:00:18 +0000
(14:00 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 8 Aug 2019 05:00:18 +0000
(14:00 +0900)
Change-Id: I179826e975edab1dcad2f7ba32451199a20a8af6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app_control.c
patch
|
blob
|
history
diff --git
a/src/app_control.c
b/src/app_control.c
index 033c5701d13df4c155b02492e52b4f63e9abb17e..e48147f6b3d71fca463bf6f45d8f6d2cd93e388c 100644
(file)
--- a/
src/app_control.c
+++ b/
src/app_control.c
@@
-2111,7
+2111,9
@@
static int __launch_request_send_sync(struct launch_request_s *req)
request->launch_pid = ret;
- if (app_control_create_reply(reply_bundle, &req->reply) != 0) {
+ ret = app_control_create_reply(reply_bundle, &req->reply);
+ bundle_free(reply_bundle);
+ if (ret != 0) {
return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER,
__FUNCTION__, "Failed to create reply handle");
}