Description: Fixed double free SEGV in gmdb2 dissector
Author: Jean-Michel Vourgère <jmv_deb@nirgal.com>
Origin: upstream, https://github.com/brianb/mdbtools/commit/1ff5d62e3070d1f0d325c510f95105497591f5fb
Last-Update: 2012-07-14

--- mdbtools-0.7.orig/src/gmdb2/debug.c
+++ mdbtools-0.7/src/gmdb2/debug.c
@@ -530,7 +530,7 @@ gmdb_debug_dissect_row(GtkTreeStore *sto
 		((unsigned char*)fbuf)[eod_ptr], ((unsigned char*)fbuf)[eod_ptr]);
 	gmdb_debug_add_item(store, parent, str, eod_ptr, 1);
 	for (i=0;i<var_cols;i++) {
-		g_strdup_printf("Var col %d offset: 0x%02x (%u)", var_cols-i,
+		str = g_strdup_printf("Var col %d offset: 0x%02x (%u)", var_cols-i,
 			((unsigned char*)fbuf)[eod_ptr+i+1], ((unsigned char*)fbuf)[eod_ptr+i+1]);
 		gmdb_debug_add_item(store, parent, str, eod_ptr + i + 1, 1);
 	}
