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 7642609..376e15c 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 d7f934a..f892424 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 f20b3cc..0833587 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);