e_utils: free dir_path under error condition. 66/186366/2
authorJunSeok, Kim <juns.kim@samsung.com>
Thu, 9 Aug 2018 07:17:10 +0000 (16:17 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 9 Aug 2018 08:08:32 +0000 (08:08 +0000)
Change-Id: I5b62c33ea3452b9628425db0b85b0bbdfb0920da

src/bin/e_utils.c

index a77263e..120bdbf 100644 (file)
@@ -1334,6 +1334,7 @@ e_util_file_monitor_add(const char *path, void *data)
    if (!mon)
      {
         ERR("Failed to allocate memory for E_Util_File_Monitor !");
+        free(dir_path);
         return 0;
      }