diff options
author | VBS <vdtizen.sds@samsung.com> | 2019-01-17 11:25:24 +0900 |
---|---|---|
committer | VBS <vdtizen.sds@samsung.com> | 2019-01-17 11:27:02 +0900 |
commit | f5ad0c4cb7922fd7b70e0437705e6e120c20ef67 (patch) | |
tree | 85a546cfea72a9bec694590019c61310931f7950 | |
parent | 0f2b28f395a993f4809db74ca570715164988834 (diff) | |
download | libmtp-f5ad0c4cb7922fd7b70e0437705e6e120c20ef67.tar.gz libmtp-f5ad0c4cb7922fd7b70e0437705e6e120c20ef67.tar.bz2 libmtp-f5ad0c4cb7922fd7b70e0437705e6e120c20ef67.zip |
Fix Svace issuetizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000007submit/tizen/20191030.060801submit/tizen/20190123.011544submit/tizen/20190117.045525accepted/tizen/unified/20190128.061538accepted/tizen/unified/20190118.055651accepted/tizen/5.5/unified/mobile/hotfix/20201027.074333accepted/tizen/5.5/unified/20191031.011951tizen_5.5_mobile_hotfixaccepted/tizen_5.5_unified_mobile_hotfix
- WGID 371624
Change-Id: Ieb5a6f81ba040318a426c03fc16bdababf9396e0
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rwxr-xr-x | src/libmtp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmtp.c b/src/libmtp.c index ae9c088..c329034 100755 --- 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; } |