Revert "ecore_con: fix a memory leaking" 35/225135/2
authorwonki kim <wonki_.kim@samsung.com>
Mon, 17 Feb 2020 12:49:22 +0000 (12:49 +0000)
committerwonki kim <wonki_.kim@samsung.com>
Mon, 17 Feb 2020 12:51:52 +0000 (12:51 +0000)
This reverts commit 3471f879321089210a8ce0bee740598da1292c88.

Change-Id: I55efe076ebe594f18338e945ab03f74db6d36b58

src/lib/ecore_con/ecore_con_local.c

index 6b96299..4806248 100644 (file)
@@ -122,11 +122,7 @@ _ecore_con_local_mkpath(const char *path, mode_t mode)
    s = strdup(path);
    EINA_SAFETY_ON_NULL_RETURN(s);
    d = dirname(s);
-   if (!d)
-     {
-        free(s);
-        return;
-     }
+   EINA_SAFETY_ON_NULL_RETURN(d);
 
    for (itr = d + 1; *itr != '\0'; itr++)
      {