aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:11:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-28 23:11:44 +0800
commit483fe8889210cf7a0f8fc7f204cd3f1c08b237a6 (patch)
tree1e78657854a862f3329e57a4e0e0b52358325fa9
parent6540f01ee0767faac3b386fa80e317456c454336 (diff)
downloadgsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar.gz
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar.bz2
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar.lz
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar.xz
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.tar.zst
gsoc2013-evolution-483fe8889210cf7a0f8fc7f204cd3f1c08b237a6.zip
Free()ing memory allocated through alloca() is Not A Good Thing.
svn path=/trunk/; revision=5078
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/mbox/camel-mbox-summary.c1
2 files changed, 5 insertions, 1 deletions
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 <ettore@helixcode.com>
+
+ * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync):
+ Never ever free `tmpname' as it comes from `alloca()'!
+
2000-08-26 Ettore Perazzoli <ettore@helixcode.com>
* 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,