diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 16:34:22 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 16:34:22 +0200 |
commit | 0949095bce712a44c82a3ea0c527df6e810e48f6 (patch) | |
tree | a479b7dd0565c4e4327c979aad6ce09048db9ce9 | |
parent | 2fc258dc9e58b2a2646d09778026a0a82fb9210e (diff) |
Free path in service_incoming(), fixes memory leak.
-rw-r--r-- | httpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |