Plug some leaks
authorColin Leroy <colin@colino.net>
Thu, 31 Oct 2002 14:01:39 +0000 (14:01 +0000)
committerColin Leroy <colin@colino.net>
Thu, 31 Oct 2002 14:01:39 +0000 (14:01 +0000)
ChangeLog.claws
configure.in
src/mbox_folder.c

index 45eba7f1594ae3ed04c7881e557698a0afb96110..5c1705edbf97db1bdd2a168e808247bdda172eb8 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-31 [colin]     0.8.5claws62
+
+       * src/mbox_folder.c
+               Plug some leaks
+
 2002-10-31 [paul]      0.8.5claws61
 
        * src/prefs_filter.[ch] ** REMOVED **
index 1a2af885b341733302d32be324f8f6bf04a9f54a..af32186ab1f98f9e738fd8757e62bbe96ed80c18 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws61
+EXTRA_VERSION=claws62
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 12f1af41c7da6ff15011a4291a552c34b87a6e21..000b9285e31dc35c6057eb9d934bf2a24b6a8ceb 100644 (file)
@@ -183,6 +183,7 @@ static gboolean mbox_file_lock_file(gchar * base)
                        g_warning(_("can't create %s\n"), lockfile);
                        unlink(lockfile);
                        g_free(lockfile);
+                       g_free(locklink);
                        return -1;
                }
                if (retry == 0)
@@ -193,7 +194,8 @@ static gboolean mbox_file_lock_file(gchar * base)
        }
        unlink(lockfile);
        g_free(lockfile);
-
+       g_free(locklink);
+       
        return TRUE;
 }
 
@@ -539,7 +541,7 @@ static mailfile * mailfile_init_from_file(FILE * f, gchar * filename)
        mf->count = msgnum;
 
        mailfile_error = MAILFILE_ERROR_NO_ERROR;
-
+       
        return mf;
 }
 
@@ -1927,6 +1929,7 @@ void mbox_change_flags(Folder * folder, FolderItem * item, MsgInfo * info)
        msg->flags = info->flags;
 
        cache->modification = TRUE;
+               
 }
 
 
@@ -1990,6 +1993,7 @@ static gboolean mbox_rewrite(gchar * mbox)
                fclose(new_fp);
                mbox_unlock_file(mbox_fp, mbox);
                fclose(mbox_fp);
+               g_free(new);
                return -1;
        }
 
@@ -2015,6 +2019,8 @@ static gboolean mbox_rewrite(gchar * mbox)
 
        mbox_cache_synchronize(mbox, FALSE);
 
+       g_free(new);
+       
        return result;
 }
 
@@ -2086,6 +2092,7 @@ static gboolean mbox_purge_deleted(gchar * mbox)
                fclose(new_fp);
                mbox_unlock_file(mbox_fp, mbox);
                fclose(mbox_fp);
+               g_free(new);
                return -1;
        }
 
@@ -2105,7 +2112,7 @@ static gboolean mbox_purge_deleted(gchar * mbox)
        debug_print("%i messages written - %s\n", count, mbox);
 
        mbox_cache_synchronize(mbox, FALSE);
-
+       g_free(new);
        return result;
 }