Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2242)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2008-12-30  Philip Van Hoof  <philip@codeminded.be>
+
+	* gobject/valagerrormodule.vala: Newyear present for Jürg, Fix for Bug# 557856
+
 2008-12-26  Jürg Billeter  <j@bitron.ch>
 
 	* gobject/valaccodebasemodule.vala:
Index: gobject/valagerrormodule.vala
===================================================================
--- gobject/valagerrormodule.vala	(revision 2242)
+++ gobject/valagerrormodule.vala	(working copy)
@@ -105,6 +105,12 @@
 			// TODO might be the wrong one when using nested try statements
 
 			var cerror_block = new CCodeBlock ();
+
+			// free local variables
+			var free_frag = new CCodeFragment ();
+			append_local_free (current_symbol, free_frag, false);
+			cerror_block.add_statement (free_frag);
+
 			foreach (CatchClause clause in current_try.get_catch_clauses ()) {
 				// go to catch clause if error domain matches
 				var cgoto_stmt = new CCodeGotoStatement (clause.clabel_name);
