leaklet--
authorraster <raster>
Sat, 4 Aug 2012 04:14:22 +0000 (04:14 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Aug 2012 04:14:22 +0000 (04:14 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@74867 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_prefix.c

index 79fecac..c020a10 100644 (file)
@@ -591,6 +591,7 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix,
          {
             if (*p == DSEP_C)
               {
+                  if (pfx->prefix_path) free(pfx->prefix_path);
                  pfx->prefix_path = malloc(p - pfx->exe_path + 1);
                  if (pfx->prefix_path)
                    {