From 39a598e3e7fd769b5ff499a23f02a9ed9cc0798a Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 11 Nov 2005 05:09:45 +0000 Subject: - Fix double free() bug. - Bump PORTREVISION. PR: ports/88748 Submitted by: Vasil Dimov --- textproc/libextractor/Makefile | 2 +- textproc/libextractor/files/patch-src::main::extractor.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 textproc/libextractor/files/patch-src::main::extractor.c diff --git a/textproc/libextractor/Makefile b/textproc/libextractor/Makefile index ef5dc243dca5..04dfe8915cfd 100644 --- a/textproc/libextractor/Makefile +++ b/textproc/libextractor/Makefile @@ -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} diff --git a/textproc/libextractor/files/patch-src::main::extractor.c b/textproc/libextractor/files/patch-src::main::extractor.c new file mode 100644 index 000000000000..818479c30ce3 --- /dev/null +++ b/textproc/libextractor/files/patch-src::main::extractor.c @@ -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 -- cgit v1.2.3