fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 17 Jun 2010 23:10:25 +0000 (23:10 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 17 Jun 2010 23:10:25 +0000 (23:10 +0000)
src/util/os_installation.c

index 54ac001f9271be397504e08b67956f02277ac746..c610281878b560e1f074aee296096c5ba605e904 100644 (file)
@@ -99,7 +99,6 @@ get_path_from_proc_exe ()
   if ((size == 0) || (size >= sizeof(lnk)-1))
     {
       GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "readlink", fn);
-      GNUNET_free (lnk);
       return NULL;
     }
   lnk[size] = '\0';
@@ -108,7 +107,6 @@ get_path_from_proc_exe ()
   if ((size < 4) || (lnk[size - 4] != '/'))
     {
       /* not installed in "/bin/" -- binary path probably useless */
-      GNUNET_free (lnk);
       return NULL;
     }
   lnk[size] = '\0';