[asterisk-commits] dbailey: trunk r114253 - /trunk/res/res_http_post.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 18 11:05:29 CDT 2008
Author: dbailey
Date: Fri Apr 18 11:05:29 2008
New Revision: 114253
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114253
Log:
Add g__object_unref to clean up gmime message object
Modified:
trunk/res/res_http_post.c
Modified: trunk/res/res_http_post.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_http_post.c?view=diff&rev=114253&r1=114252&r2=114253
==============================================================================
--- trunk/res/res_http_post.c (original)
+++ trunk/res/res_http_post.c Fri Apr 18 11:05:29 2008
@@ -245,11 +245,13 @@
if (!(message_count = process_message(message, post_dir->str))) {
ast_log(LOG_ERROR, "Invalid MIME data, found no parts!\n");
-
+ g_object_unref(message);
return ast_http_error((*status = 400),
(*title = ast_strdup("Bad Request")),
NULL, "The was an error parsing the request.");
}
+
+ g_object_unref(message);
return ast_http_error((*status = 200),
(*title = ast_strdup("OK")),
More information about the asterisk-commits
mailing list