projects
/
platform
/
core
/
connectivity
/
mtp-responder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
067c8cd
)
Fixed a svace issue
54/205854/1
author
VBS
<saerome.kim@samsung.com>
Thu, 9 May 2019 23:21:32 +0000
(08:21 +0900)
committer
saerome 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
patch
|
blob
|
history
diff --git
a/src/entity/mtp_object.c
b/src/entity/mtp_object.c
index
b5d43d6
..
66c409f
100755
(executable)
--- a/
src/entity/mtp_object.c
+++ b/
src/entity/mtp_object.c
@@
-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,