Skip to content

Commit

Permalink
utils: cleanup CURL handle when the POST value can't be fetched from …
Browse files Browse the repository at this point in the history
…the PVAR

- patch provided by mikomarrache on GH #88

(cherry picked from commit b88e165)
  • Loading branch information
miconda committed Apr 1, 2015
1 parent c44df47 commit 362cb1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/utils/functions.c
Expand Up @@ -110,6 +110,7 @@ int http_query(struct sip_msg* _m, char* _url, char* _dst, char* _post)

if (fixup_get_svalue(_m, (gparam_p)_post, &post_value) != 0) {
LM_ERR("cannot get post value\n");
curl_easy_cleanup(curl);
pkg_free(url);
return -1;
}
Expand Down

0 comments on commit 362cb1d

Please sign in to comment.