projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3082bbc
)
ecore: remove dead free
author
Sebastian Dransfeld
<sd@tango.flipp.net>
Mon, 23 Dec 2013 12:39:47 +0000
(13:39 +0100)
committer
Sebastian Dransfeld
<sd@tango.flipp.net>
Mon, 23 Dec 2013 12:39:47 +0000
(13:39 +0100)
Since we now free exe on goto restart, exe will always be NULL.
CID 1139955
src/lib/ecore_file/ecore_file.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_file/ecore_file.c
b/src/lib/ecore_file/ecore_file.c
index
943ed4d
..
c410393
100644
(file)
--- a/
src/lib/ecore_file/ecore_file.c
+++ b/
src/lib/ecore_file/ecore_file.c
@@
-903,7
+903,6
@@
restart:
homedir = getenv("HOME");
if (!homedir) return NULL;
len = strlen(homedir);
- if (exe) free(exe);
exe = malloc(len + exe2 - exe1 + 2);
if (!exe) return NULL;
pp = exe;
@@
-920,7
+919,6
@@
restart:
}
else
{
- if (exe) free(exe);
exe = malloc(exe2 - exe1 + 1);
if (!exe) return NULL;
pp = exe;