projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7825efb
)
Fix memory leak
75/165775/1
author
Sangyoon Jang
<jeremy.jang@samsung.com>
Thu, 4 Jan 2018 01:48:57 +0000
(10:48 +0900)
committer
Sangyoon Jang
<jeremy.jang@samsung.com>
Thu, 4 Jan 2018 01:48:57 +0000
(10:48 +0900)
Change-Id: I9dfbd4d88188c352e5d9cf0e14caa0e58938c21c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/pkg_getsize.c
patch
|
blob
|
history
diff --git
a/src/pkg_getsize.c
b/src/pkg_getsize.c
index 7ac5282a7f9ea0b5824e1c3861cfeb03683cd3c8..94ebd6660a766bf17e3dd18e3bab4e85937e7723 100644
(file)
--- a/
src/pkg_getsize.c
+++ b/
src/pkg_getsize.c
@@
-114,8
+114,12
@@
static char *__get_external_tep_path_by_handle(pkgmgrinfo_pkginfo_h handle)
if (ret < 0)
return NULL;
- if (strstr(result_path, sdpath) == NULL)
+ if (strstr(result_path, sdpath) == NULL) {
+ free(sdpath);
return NULL;
+ }
+
+ free(sdpath);
return strdup(result_path);
}