Fixed a svace issue 54/205854/1
authorVBS <saerome.kim@samsung.com>
Thu, 9 May 2019 23:21:32 +0000 (08:21 +0900)
committersaerome kim <saerome.kim@samsung.com>
Thu, 9 May 2019 23:25:18 +0000 (08:25 +0900)
- Removing potential risk of memory corruption due to
  dangling pointer reference.

Change-Id: Iaf0c60649e6364e35fd0787141569b347a985c21
Signed-off-by: saerome kim <saerome.kim@samsung.com>
src/entity/mtp_object.c

index b5d43d6..66c409f 100755 (executable)
@@ -438,6 +438,7 @@ mtp_bool _entity_init_mtp_object_params(
 
        if (NULL == obj->obj_info) {
                g_free(obj->file_path);
+               obj->file_path = NULL;
                return FALSE;
        }
        _entity_init_object_info_params(obj->obj_info, store_id, h_parent,