Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2007-01-30 18:46:30 -0500
committerAndrew Niefer2007-01-30 18:46:30 -0500
commit9c964f1d859ad377a5f69faba4a373f5f00d1bc3 (patch)
tree44267201a4ca4c50f9ecf65a0585b201df285157 /bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
parent62915ffa181b27eca8acff582cd3fd730aa97193 (diff)
downloadrt.equinox.framework-9c964f1d859ad377a5f69faba4a373f5f00d1bc3.tar.gz
rt.equinox.framework-9c964f1d859ad377a5f69faba4a373f5f00d1bc3.tar.xz
rt.equinox.framework-9c964f1d859ad377a5f69faba4a373f5f00d1bc3.zip
choosing a vm & reading .ee files
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/eclipseCommon.c')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/eclipseCommon.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
index 01ed623f6..714eb824a 100644
--- a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
+++ b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
@@ -186,7 +186,12 @@ _TCHAR* findCommand( _TCHAR* command )
cmdPath = NULL;
}
- return resolveSymlinks(cmdPath);
+ ch = resolveSymlinks(cmdPath);
+ if (ch != cmdPath) {
+ free(cmdPath);
+ cmdPath = ch;
+ }
+ return cmdPath;
}
#if !defined(_WIN32) && !defined(MACOSX)
@@ -198,7 +203,6 @@ char * resolveSymlinks( char * path ) {
ch = path;
buffer = malloc(PATH_MAX);
path = realpath(path, buffer);
- free(ch);
return path;
}
#endif

Back to the top