From 860c48d0d497fcaecfa859a3e053be10f70adb5e Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 23 Apr 2003 18:58:18 +0000 Subject: Fix a double-free bug in logview. Obtained from: FreeBSD CVS git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@683 df743ca5-7f9a-e211-a948-0013205c9059 --- deskutils/gnome-utils/Makefile | 1 + deskutils/gnome-utils/files/patch-logview_logview.c | 18 +++++++++++++----- deskutils/gnomeutils2/Makefile | 1 + deskutils/gnomeutils2/files/patch-logview_logview.c | 18 +++++++++++++----- 4 files changed, 28 insertions(+), 10 deletions(-) (limited to 'deskutils') diff --git a/deskutils/gnome-utils/Makefile b/deskutils/gnome-utils/Makefile index c0df6fec9..fa6645048 100644 --- a/deskutils/gnome-utils/Makefile +++ b/deskutils/gnome-utils/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomeutils2 PORTVERSION= 2.3.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= misc gnome MASTER_SITES= ${MASTER_SITE_GNOME} diff --git a/deskutils/gnome-utils/files/patch-logview_logview.c b/deskutils/gnome-utils/files/patch-logview_logview.c index 49e8b06b3..3fe0abf93 100644 --- a/deskutils/gnome-utils/files/patch-logview_logview.c +++ b/deskutils/gnome-utils/files/patch-logview_logview.c @@ -1,6 +1,6 @@ ---- logview/logview.c.orig Tue May 7 00:03:16 2002 -+++ logview/logview.c Tue May 7 00:04:37 2002 -@@ -903,7 +903,7 @@ +--- logview/logview.c.orig Sun Feb 16 15:34:59 2003 ++++ logview/logview.c Wed Apr 23 14:51:26 2003 +@@ -774,7 +774,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -9,7 +9,7 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->regexp_db_path); -@@ -926,7 +926,7 @@ +@@ -797,7 +797,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -18,7 +18,7 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->descript_db_path); -@@ -960,7 +960,7 @@ +@@ -831,7 +831,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -27,3 +27,11 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->action_db_path); +@@ -882,7 +882,6 @@ + else + prefs->logfile = NULL; + } +- g_free (logfile); + } + + void SaveUserPrefs(UserPrefsStruct *prefs) diff --git a/deskutils/gnomeutils2/Makefile b/deskutils/gnomeutils2/Makefile index c0df6fec9..fa6645048 100644 --- a/deskutils/gnomeutils2/Makefile +++ b/deskutils/gnomeutils2/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomeutils2 PORTVERSION= 2.3.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= misc gnome MASTER_SITES= ${MASTER_SITE_GNOME} diff --git a/deskutils/gnomeutils2/files/patch-logview_logview.c b/deskutils/gnomeutils2/files/patch-logview_logview.c index 49e8b06b3..3fe0abf93 100644 --- a/deskutils/gnomeutils2/files/patch-logview_logview.c +++ b/deskutils/gnomeutils2/files/patch-logview_logview.c @@ -1,6 +1,6 @@ ---- logview/logview.c.orig Tue May 7 00:03:16 2002 -+++ logview/logview.c Tue May 7 00:04:37 2002 -@@ -903,7 +903,7 @@ +--- logview/logview.c.orig Sun Feb 16 15:34:59 2003 ++++ logview/logview.c Wed Apr 23 14:51:26 2003 +@@ -774,7 +774,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -9,7 +9,7 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->regexp_db_path); -@@ -926,7 +926,7 @@ +@@ -797,7 +797,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -18,7 +18,7 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->descript_db_path); -@@ -960,7 +960,7 @@ +@@ -831,7 +831,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), @@ -27,3 +27,11 @@ if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->action_db_path); +@@ -882,7 +882,6 @@ + else + prefs->logfile = NULL; + } +- g_free (logfile); + } + + void SaveUserPrefs(UserPrefsStruct *prefs) -- cgit v1.2.3