summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2020-05-04 17:01:38 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2020-05-04 17:04:04 +0900
commitc9a3fd447c2f03b725cb9d3bf7d48ddf472d8b57 (patch)
tree94b6945c7e46e411d16659a6f08fa2c5aeb88c10
parentd87956f5e6a5e58c2f87c7ca82ab2fe1ad9f90c8 (diff)
downloadmtp-responder-tizen_5.5.tar.gz
mtp-responder-tizen_5.5.tar.bz2
mtp-responder-tizen_5.5.zip
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.c2
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;
}