tests: simple-httpd: Don't leak index_path string
authorRobert Swain <robert.swain@collabora.co.uk>
Tue, 31 Jan 2012 12:52:37 +0000 (13:52 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 8 Feb 2012 10:06:55 +0000 (10:06 +0000)
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Winship <danw@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=669479
Bug-NB: NB#297634

tests/simple-httpd.c

index 535de4b..ab88bf9 100644 (file)
@@ -127,6 +127,7 @@ do_get (SoupServer *server, SoupMessage *msg, const char *path)
                        g_free (index_path);
                        return;
                }
+               g_free (index_path);
 
                listing = get_directory_listing (path);
                soup_message_set_response (msg, "text/html",