diff options
author | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 16:05:29 +0000 |
---|---|---|
committer | dbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 16:05:29 +0000 |
commit | 559a50aedd2bde81586c33d009ac4c44eb3ee373 (patch) | |
tree | dc32340a06fdd63c653d8cd297634ed1d77e2c9f /res/res_http_post.c | |
parent | 19aa5da91a1b1c5e81be35f5690bee0c04dc6be4 (diff) |
Add g__object_unref to clean up gmime message object
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114253 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_http_post.c')
-rw-r--r-- | res/res_http_post.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_http_post.c b/res/res_http_post.c index bcf2e0dbd..d065365fd 100644 --- a/res/res_http_post.c +++ b/res/res_http_post.c @@ -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."); |