summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Taek Hong <sth253.hong@samsung.com>2015-10-19 11:43:13 -0700
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitfa34233e23fb02b372117ff4cd2cdc382dead2b9 (patch)
tree7b4c2f3e47903b7c3f0e0671c518e287aee42670
parentfe34f79ac8271888f0eaf7d033223bd9e295ff70 (diff)
elc_file_selector_button: free allocated path name
Summary: Currently path is strdup() when getting real path, but it is not freed in some cases. @fix Reviewers: seoz, Hermet, woohyun, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3194 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elc_fileselector_button.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c
index e602a9192..fb5d08229 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -463,6 +463,7 @@ _elm_fileselector_button_elm_interface_fileselector_selected_set(Eo *obj EINA_UN
463 free(path); 463 free(path);
464 return EINA_FALSE; 464 return EINA_FALSE;
465 } 465 }
466 free(path);
466 } 467 }
467 468
468 eina_stringshare_replace(&sd->fsd.selection, _path); 469 eina_stringshare_replace(&sd->fsd.selection, _path);