summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-06-15 08:05:02 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-15 08:05:02 +0300
commitb67c791c8a2186d57fa643fb347e68e59c731770 (patch)
tree86f3e6b1f09aa118dfbd7a23fe45f3969a2e97f1
parent4b01ea2597526df8b0e0d82d25aae36c7faa8eff (diff)
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
-rw-r--r--src/lib/elm_cnp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index f4a487c15..5d32fee04 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,
1061 { 1061 {
1062 free(p); 1062 free(p);
1063 stripstr = (char *)eina_memdup((unsigned char *)uri->path, strlen(uri->path), EINA_TRUE); 1063 stripstr = (char *)eina_memdup((unsigned char *)uri->path, strlen(uri->path), EINA_TRUE);
1064 efreet_uri_free(uri);
1064 if (!stripstr) return EINA_FALSE; 1065 if (!stripstr) return EINA_FALSE;
1065 } 1066 }
1066 } 1067 }