jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b67c791c8a2186d57fa643fb347e68e59c731770

commit b67c791c8a2186d57fa643fb347e68e59c731770
Author: Youngbok Shin <youngb.s...@samsung.com>
Date:   Mon Jun 15 08:05:02 2015 +0300

    cnp: Fix memory leak issue.
    
    Summary: Call efreet_uri_free() API to free Efreet_Uri structure.
    
    Test Plan: None.
    
    Reviewers: raster, cedric, woohyun, Hermet, thiepha, JackDanielZ
    
    Subscribers: JackDanielZ
    
    Differential Revision: https://phab.enlightenment.org/D2655
---
 src/lib/elm_cnp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index f4a487c..5d32fee 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1061,6 +1061,7 @@ _x11_data_preparer_uri(Ecore_X_Event_Selection_Notify 
*notify,
           {
              free(p);
              stripstr = (char *)eina_memdup((unsigned char *)uri->path, 
strlen(uri->path), EINA_TRUE);
+             efreet_uri_free(uri);
              if (!stripstr) return EINA_FALSE;
           }
      }

-- 


Reply via email to