diff liboctave/file-ops.cc @ 6273:de81db175325

[project @ 2007-02-06 18:55:23 by jwe]
author jwe
date Tue, 06 Feb 2007 18:55:23 +0000
parents 6fab59e81b4e
children e5227a46343d
line wrap: on
line diff
--- a/liboctave/file-ops.cc
+++ b/liboctave/file-ops.cc
@@ -496,13 +496,8 @@
 
   OCTAVE_LOCAL_BUFFER (char, buf, PATH_MAX);
 
-  char *tmp = ::realpath (name.c_str (), buf);
-
-  if (tmp)
-    {
-      retval = tmp;
-      ::free (tmp);
-    }
+  if (::realpath (name.c_str (), buf))
+    retval = buf;
 
 #else