From 1de28b5956063383ad6e3d4cdca7383e31e69652 Mon Sep 17 00:00:00 2001 From: Pascal Rapicault Date: Thu, 19 Mar 2015 21:24:08 -0400 Subject: Second attempt at fixing crash on Mac restart --- .../org.eclipse.equinox.executable.feature/library/eclipseConfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features') diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c b/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c index 4f99ef2ad..afba796a0 100644 --- a/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c +++ b/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c @@ -89,8 +89,8 @@ _TCHAR* getIniFile(_TCHAR* program, int consoleLauncher){ bname = basename(basec); config_file = realloc(config_file, strlen(dname) + strlen(bname) + 16 * sizeof(char)); sprintf(config_file, "%s/Eclipse/%s.ini", dname, bname); - free(dname); - free(bname); + free(dirc); + free(basec); #else /* Append the extension */ strcat(config_file, ".ini"); -- cgit v1.2.3