diff options
author | Cheoleun Moon <chleun.moon@samsung.com> | 2020-05-04 17:01:38 +0900 |
---|---|---|
committer | Cheoleun Moon <chleun.moon@samsung.com> | 2020-05-04 17:04:04 +0900 |
commit | c9a3fd447c2f03b725cb9d3bf7d48ddf472d8b57 (patch) | |
tree | 94b6945c7e46e411d16659a6f08fa2c5aeb88c10 | |
parent | d87956f5e6a5e58c2f87c7ca82ab2fe1ad9f90c8 (diff) | |
download | mtp-responder-tizen_5.5.tar.gz mtp-responder-tizen_5.5.tar.bz2 mtp-responder-tizen_5.5.zip |
Fix double freesubmit/tizen_5.5_wearable_hotfix/20201026.184303submit/tizen_5.5/20200506.052150accepted/tizen/5.5/unified/wearable/hotfix/20201027.114939accepted/tizen/5.5/unified/20200507.152317tizen_5.5_wearable_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified
A variable, obj_info has been already freed when _hutil_add_object_entry() returns
an error. It leads in double free of obj_info.
Change-Id: I9cca2ef8a4048b2127cf3be751a7c9c73aa62660
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
-rw-r--r-- | src/mtp_cmd_handler_util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mtp_cmd_handler_util.c b/src/mtp_cmd_handler_util.c index aa14b0d..7282a49 100644 --- a/src/mtp_cmd_handler_util.c +++ b/src/mtp_cmd_handler_util.c @@ -1949,8 +1949,6 @@ ERROR_EXIT: #ifdef MTP_SUPPORT_ALBUM_ART g_free(alb_buf); #endif /* MTP_SUPPORT_ALBUM_ART */ - if (obj_info != NULL) - _entity_dealloc_obj_info(obj_info); /* LCOV_EXCL_STOP */ return resp; } |