diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-17 23:10:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-17 23:10:25 +0000 |
commit | d47f834c1f2de41c9fba74a4b6928e7c8e0679e0 (patch) | |
tree | 51be489b9c2a3da539d17e85fc4ada2d55bd164c /src/util/os_installation.c | |
parent | c3d2019f61f5010b42aa3c0ebb121f1fbfd91e0c (diff) | |
download | gnunet-d47f834c1f2de41c9fba74a4b6928e7c8e0679e0.tar.gz gnunet-d47f834c1f2de41c9fba74a4b6928e7c8e0679e0.zip |
fix
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index 54ac001f9..c61028187 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -99,7 +99,6 @@ get_path_from_proc_exe () | |||
99 | if ((size == 0) || (size >= sizeof(lnk)-1)) | 99 | if ((size == 0) || (size >= sizeof(lnk)-1)) |
100 | { | 100 | { |
101 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "readlink", fn); | 101 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "readlink", fn); |
102 | GNUNET_free (lnk); | ||
103 | return NULL; | 102 | return NULL; |
104 | } | 103 | } |
105 | lnk[size] = '\0'; | 104 | lnk[size] = '\0'; |
@@ -108,7 +107,6 @@ get_path_from_proc_exe () | |||
108 | if ((size < 4) || (lnk[size - 4] != '/')) | 107 | if ((size < 4) || (lnk[size - 4] != '/')) |
109 | { | 108 | { |
110 | /* not installed in "/bin/" -- binary path probably useless */ | 109 | /* not installed in "/bin/" -- binary path probably useless */ |
111 | GNUNET_free (lnk); | ||
112 | return NULL; | 110 | return NULL; |
113 | } | 111 | } |
114 | lnk[size] = '\0'; | 112 | lnk[size] = '\0'; |