projects
/
platform
/
core
/
connectivity
/
mtp-responder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bede2d
)
fix WGID 110834
53/172653/1
accepted/tizen/unified/20180316.062549
submit/tizen/20180316.012933
author
saerome.kim
<saerome.kim@samsung.com>
Thu, 15 Mar 2018 05:19:11 +0000
(14:19 +0900)
committer
saerome.kim
<saerome.kim@samsung.com>
Thu, 15 Mar 2018 05:19:11 +0000
(14:19 +0900)
- Resource leak problem
Change-Id: Ie2985204bc1d44261040d1074521f7eaf0718f90
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
src/entity/mtp_store.c
patch
|
blob
|
history
diff --git
a/src/entity/mtp_store.c
b/src/entity/mtp_store.c
index 7105fa30dc7d72621234d7afe2a8519377cdb1d6..882fac566427b85587f01c788a90c5da22e27ffd 100755
(executable)
--- a/
src/entity/mtp_store.c
+++ b/
src/entity/mtp_store.c
@@
-472,8
+472,13
@@
mtp_uint32 _entity_get_objects_from_store_till_depth(mtp_store_t *store,
mtp_uint32 ii = 0;
child_arr = _prop_alloc_ptparray(UINT32_TYPE);
- if (child_arr == NULL
|| child_arr->array_entry == NULL)
+ if (child_arr == NULL
) {
return 0;
+ }
+ if (child_arr->array_entry == NULL) {
+ _prop_destroy_ptparray(child_arr);
+ return 0;
+ }
depth--;