[Commits] [SCM] claws branch, master, updated. 3.13.2-28-g126c9d8

ticho at claws-mail.org ticho at claws-mail.org
Wed Feb 10 18:31:24 CET 2016


The branch, master has been updated
       via  126c9d80cee8f0f7f4559115f26f9891bd966d67 (commit)
      from  87ec96c5974945425d1151da7f6f152ac963e070 (commit)

Summary of changes:
 src/mh.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 126c9d80cee8f0f7f4559115f26f9891bd966d67
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Feb 10 18:30:20 2016 +0100

    Fix a segfault caused by freeing a string on incorrect place.
    
    Closes bug #3616.

diff --git a/src/mh.c b/src/mh.c
index b9036aa..0736e58 100644
--- a/src/mh.c
+++ b/src/mh.c
@@ -272,11 +272,12 @@ static void mh_get_last_num(Folder *folder, FolderItem *item)
 			if (max < num)
 				max = num;
 		}
+		g_free(fullpath);
+
 		if (num % 2000 == 0)
 			GTK_EVENTS_FLUSH();
 	}
 	g_dir_close(dp);
-	g_free(fullpath);
 	g_free(path);
 
 	debug_print("Last number in dir %s = %d\n", item->path?item->path:"(null)", max);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list