summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-23 13:39:47 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-23 13:39:47 +0100
commit35240d979ab513b830bbf0d84f4caa3698e6dcea (patch)
tree80e402d4455c4ce309fcdba775fb743d647b3ea3 /src/lib/ecore_file
parent3082bbc3ce8b5fefcc2a460b4d8ad43f8170fe78 (diff)
ecore: remove dead free
Since we now free exe on goto restart, exe will always be NULL. CID 1139955
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index 943ed4d7f2..c41039379f 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -903,7 +903,6 @@ restart:
903 homedir = getenv("HOME"); 903 homedir = getenv("HOME");
904 if (!homedir) return NULL; 904 if (!homedir) return NULL;
905 len = strlen(homedir); 905 len = strlen(homedir);
906 if (exe) free(exe);
907 exe = malloc(len + exe2 - exe1 + 2); 906 exe = malloc(len + exe2 - exe1 + 2);
908 if (!exe) return NULL; 907 if (!exe) return NULL;
909 pp = exe; 908 pp = exe;
@@ -920,7 +919,6 @@ restart:
920 } 919 }
921 else 920 else
922 { 921 {
923 if (exe) free(exe);
924 exe = malloc(exe2 - exe1 + 1); 922 exe = malloc(exe2 - exe1 + 1);
925 if (!exe) return NULL; 923 if (!exe) return NULL;
926 pp = exe; 924 pp = exe;