[libsoup] Fix leak of uri in soup_form_request_for_data()



commit 4c27cf5049c370c93123b71d9f9f47ee1831bb3b
Author: Jonathon Jongsma <jonathon quotidian org>
Date:   Thu May 27 17:23:00 2010 -0500

    Fix leak of uri in soup_form_request_for_data()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619897

 libsoup/soup-form.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-form.c b/libsoup/soup-form.c
index e4f15e8..33978ed 100644
--- a/libsoup/soup-form.c
+++ b/libsoup/soup-form.c
@@ -380,6 +380,7 @@ soup_form_request_for_data (const char *method, const char *uri_string,
 		/* Don't crash */
 		msg = soup_message_new_from_uri (method, uri);
 	}
+	soup_uri_free (uri);
 
 	return msg;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]