Skip to content
Snippets Groups Projects
Commit 30aa3d70 authored by Doug Bailey's avatar Doug Bailey
Browse files

Add g__object_unref to clean up gmime message object

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 21ff8b6a
No related branches found
No related tags found
No related merge requests found
......@@ -245,12 +245,14 @@ static struct ast_str *http_post_callback(struct ast_tcptls_session_instance *se
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")),
NULL, "File successfully uploaded.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment