- Fix double free() bug.

- Bump PORTREVISION.

PR: ports/88748
Submitted by: Vasil Dimov
This commit is contained in:
Kevin Lo 2005-11-11 05:09:45 +00:00
parent a7afb7e0a7
commit 39a598e3e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147879
2 changed files with 15 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= libextractor
PORTVERSION= 0.5.6a
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://gnunet.org/libextractor/download/ \
${MASTER_SITE_GNU}

View File

@ -0,0 +1,14 @@
--- src/main/extractor.c.orig Fri Nov 11 04:54:19 2005
+++ src/main/extractor.c Fri Nov 11 04:55:27 2005
@@ -246,8 +246,10 @@
void __attribute__ ((destructor)) le_ltdl_fini(void) {
lt_dlsetsearchpath(old_dlsearchpath);
- if (old_dlsearchpath != NULL)
+ if (old_dlsearchpath != NULL) {
free(old_dlsearchpath);
+ old_dlsearchpath = NULL;
+ }
#ifdef MINGW
ShutdownWinEnv();
#endif