Plug a mem leak in the regex test
authorChristian Persch <chpe@gnome.org>
Thu, 23 Jun 2011 16:35:40 +0000 (18:35 +0200)
committerChristian Persch <chpe@gnome.org>
Thu, 23 Jun 2011 23:03:52 +0000 (01:03 +0200)
glib/tests/regex.c

index 2befb1a..9a8dbc2 100644 (file)
@@ -393,6 +393,7 @@ test_match_next (gconstpointer d)
   data->expected = g_slist_append (data->expected, match);              \
   path = g_strdup_printf ("/regex/match/next4/%d", ++total);            \
   g_test_add_data_func (path, data, test_match_next);                   \
+  g_free (path);                                                        \
 }
 
 typedef struct {