[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2287 - GNUnet/src/util
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2287 - GNUnet/src/util |
Date: |
Sun, 27 Nov 2005 11:44:35 -0800 (PST) |
Author: grothoff
Date: 2005-11-27 11:44:34 -0800 (Sun, 27 Nov 2005)
New Revision: 2287
Modified:
GNUnet/src/util/dso.c
Log:
BSD fix -- double free on shutdown
Modified: GNUnet/src/util/dso.c
===================================================================
--- GNUnet/src/util/dso.c 2005-11-27 19:43:33 UTC (rev 2286)
+++ GNUnet/src/util/dso.c 2005-11-27 19:44:34 UTC (rev 2287)
@@ -61,8 +61,10 @@
void __attribute__ ((destructor)) gnc_ltdl_fini(void) {
lt_dlsetsearchpath(old_dlsearchpath);
- if (old_dlsearchpath != NULL)
+ if (old_dlsearchpath != NULL) {
free(old_dlsearchpath);
+ old_dlsearchpath = NULL;
+ }
if (0 != using_valgrind)
lt_dlexit ();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2287 - GNUnet/src/util,
grothoff <=