summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-16 16:34:22 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-16 16:34:22 +0200
commit0949095bce712a44c82a3ea0c527df6e810e48f6 (patch)
treea479b7dd0565c4e4327c979aad6ce09048db9ce9
parent2fc258dc9e58b2a2646d09778026a0a82fb9210e (diff)
Free path in service_incoming(), fixes memory leak.
-rw-r--r--httpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index c28ceee..744871f 100644
--- a/httpd.c
+++ b/httpd.c
@@ -68,6 +68,8 @@ static gboolean service_incoming(GSocketService *service,
commands_handle(connection, path);
+ g_free(path);
+
if(g_socket_close(socket, &error) == FALSE) {
g_warning(error->message);
g_error_free(error);