[asterisk-commits] dbailey: trunk r82568 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 17 09:58:20 CDT 2007


Author: dbailey
Date: Mon Sep 17 09:58:19 2007
New Revision: 82568

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82568
Log:
Fix memory leak introduced when POST support was added.

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=82568&r1=82567&r2=82568
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Sep 17 09:58:19 2007
@@ -841,6 +841,9 @@
 	/* If they aren't mopped up already, clean up the cookies */
 	if (vars)
 		ast_variables_destroy(vars);
+	/* Clean up all the header information pulled as well */
+	if (headers)
+		ast_variables_destroy(headers);
 
 	if (out) {
 		struct timeval tv = ast_tvnow();




More information about the asterisk-commits mailing list