[gssdp] Don't leak path on header parsing.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] Don't leak path on header parsing.
- Date: Thu, 14 Jul 2011 09:59:02 +0000 (UTC)
commit 8f718ff11bd35935c6756bb7c52a2cc09b76946b
Author: Jens Georg <mail jensge org>
Date: Thu Jul 14 11:58:17 2011 +0200
Don't leak path on header parsing.
libgssdp/gssdp-client.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 0854b8b..ba52027 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -853,6 +853,9 @@ parse_http_request (char *buf,
g_free (req_method);
+ if (path)
+ g_free (path);
+
return TRUE;
} else {
soup_message_headers_free (*headers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]