From 483fe8889210cf7a0f8fc7f204cd3f1c08b237a6 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 28 Aug 2000 15:11:44 +0000 Subject: Free()ing memory allocated through alloca() is Not A Good Thing. svn path=/trunk/; revision=5078 --- camel/ChangeLog | 5 +++++ camel/providers/mbox/camel-mbox-summary.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 0406a49168..9ce35eba85 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-08-28 Ettore Perazzoli + + * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync): + Never ever free `tmpname' as it comes from `alloca()'! + 2000-08-26 Ettore Perazzoli * camel-mime-utils.c (header_decode_text): Use `g_free()', not diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index 2a297594d7..adfad1312d 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -659,7 +659,6 @@ camel_mbox_summary_sync(CamelMboxSummary *mbs, gboolean expunge, CamelException if (unlink(tmpname) != -1) goto retry_out; - free (tmpname); tmpname = NULL; g_warning ("Something failed (yo!)"); camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, -- cgit v1.2.3