0.9.0claws47
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 18 Jun 2003 20:14:39 +0000 (20:14 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 18 Jun 2003 20:14:39 +0000 (20:14 +0000)
* src/imap.c
        fix memory leak in imap_cmd_fetch()

ChangeLog.claws
configure.ac
src/imap.c

index 76426091a372cc4ebfe6304ba5335c1045819c8a..376e15ca93def309905fd2c7493db1f4e2ecab1e 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-18 [christoph] 0.9.0claws47
+
+       * src/imap.c
+               fix memory leak in imap_cmd_fetch()
+
 2003-06-18 [christoph] 0.9.0claws46
 
        * src/prefs_gtk.c
index d7f934a1db5fdde9ac79a17675cf80465446361b..f8924244d75ea73e3ca549dbea991f6e07655b0b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws46
+EXTRA_VERSION=claws47
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index f20b3cc6d4918ad8cd7fb0c95d0969bfb8733d46..083358751904d5ae62ed11bf73dcab7f8c59812a 100644 (file)
@@ -2545,15 +2545,19 @@ static gint imap_cmd_fetch(IMAPSession *session, guint32 uid, const gchar *filen
                }
                if (strstr(buf, "FETCH") != NULL)
                        break;
+               g_free(buf);
        }
-       if (ok != IMAP_SUCCESS)
+       if (ok != IMAP_SUCCESS) {
+               g_free(buf);
                return ok;
+       }
 
        cur_pos = strchr(buf, '{');
        if (cur_pos == NULL) {
                g_free(buf);
                return IMAP_ERROR;
        }
+
        cur_pos = strchr_cpy(cur_pos + 1, '}', size_str, sizeof(size_str));
        if (cur_pos == NULL) {
                g_free(buf);