cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=046d80638817211ef0a85cdee087a67beb87808a

commit 046d80638817211ef0a85cdee087a67beb87808a
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Wed Oct 28 06:38:14 2015 +0100

    Revert "Eina: Fix 58b194e0ad56fe83cce3946a5deb0045ee0cbce2"
    
    This reverts commit 22b45f220c994f5b6e6ee2620ad8a5ab1e0528c2.
    
    eina_file_cleanup always does an eina_tmpstr_del. This is now capable of 
doing
    double or even triple free in some case.
---
 src/lib/eina/eina_file_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 5451081..4dee3c7 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -359,7 +359,7 @@ eina_file_path_sanitize(const char *path)
    else
      result = path;
 
-   r = _eina_file_escape(eina_file_cleanup(result), len);
+   r = _eina_file_escape(strdup(result ? result : ""), len);
    if (result != path) eina_tmpstr_del(result);
 
    return r;

-- 


Reply via email to