pidgin/pidgin

HTTP: fix use-after-free. Fixes #15905

2014-02-01, Tomasz Wasilczyk
aa0328600eb6
Parents 3c9c77b80a6c
Children 9553d50ea702
HTTP: fix use-after-free. Fixes #15905
--- a/libpurple/http.c Sat Feb 01 11:13:25 2014 -0800
+++ b/libpurple/http.c Sat Feb 01 21:26:39 2014 +0100
@@ -305,13 +305,14 @@
g_match_info_free(match_info);
return 0;
}
- g_match_info_free(match_info);
d_date = g_match_info_fetch(match_info, 1);
d_month = g_match_info_fetch(match_info, 2);
d_year = g_match_info_fetch(match_info, 3);
d_time = g_match_info_fetch(match_info, 4);
+ g_match_info_free(match_info);
+
month = 0;
while (months[month] != NULL)
{