diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2018-09-27 13:59:10 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2018-09-27 13:59:36 +0900 |
commit | b410beec6e6b2ca3559a09652539d23178683372 (patch) | |
tree | 14eb1e03cf1b8542e829babd0a0da29bc0b5d3cc | |
parent | edffa20d49b222e6c7679deae45066225a63269b (diff) | |
download | aul-1-b410beec6e6b2ca3559a09652539d23178683372.tar.gz aul-1-b410beec6e6b2ca3559a09652539d23178683372.tar.bz2 aul-1-b410beec6e6b2ca3559a09652539d23178683372.zip |
Fixed resource leak
Change-Id: Ida71fd2ac3a002a87289bdde29606e9a518f60d3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-x | src/service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 2e03a0db..2c621e7f 100755 --- a/src/service.c +++ b/src/service.c @@ -330,8 +330,11 @@ static int __run_svc_with_pkgname(char *pkgname, bundle *b, int request_code, #endif } - if (ret < 0) + if (ret < 0) { + if (cb_info) + __remove_rescb(cb_info); ret = __error_convert(ret); + } return ret; } |