projects
/
platform
/
upstream
/
libmtp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2b28f
)
Fix Svace issue
84/197884/1
accepted/tizen_5.5_unified_mobile_hotfix
tizen_5.5_mobile_hotfix
accepted/tizen/5.5/unified/20191031.011951
accepted/tizen/5.5/unified/mobile/hotfix/20201027.074333
accepted/tizen/unified/20190118.055651
accepted/tizen/unified/20190128.061538
submit/tizen/20190117.045525
submit/tizen/20190123.011544
submit/tizen/20191030.060801
submit/tizen_5.5/20191031.000007
submit/tizen_5.5_mobile_hotfix/20201026.185107
tizen_5.5.m2_release
author
VBS
<vdtizen.sds@samsung.com>
Thu, 17 Jan 2019 02:25:24 +0000
(11:25 +0900)
committer
VBS
<vdtizen.sds@samsung.com>
Thu, 17 Jan 2019 02:27:02 +0000
(11:27 +0900)
- WGID 371624
Change-Id: Ieb5a6f81ba040318a426c03fc16bdababf9396e0
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
src/libmtp.c
patch
|
blob
|
history
diff --git
a/src/libmtp.c
b/src/libmtp.c
index
ae9c088
..
c329034
100755
(executable)
--- a/
src/libmtp.c
+++ b/
src/libmtp.c
@@
-9342,6
+9342,11
@@
int LIBMTP_Get_Object_Handles(LIBMTP_mtpdevice_t *device, uint32_t storage,
*object_list = (uint32_t *)malloc(currentHandles.n * sizeof(int));
if (*object_list == NULL) {
LIBMTP_INFO("object list is NULL");
+ if (currentHandles.Handler != NULL) {
+ free(currentHandles.Handler);
+ currentHandles.Handler = NULL;
+ }
+
return -4;
}