From e068e29190b21ab675aed6c55e28af590ef4b648 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 24 Mar 2012 23:46:16 +0000 Subject: [PATCH] func_curl: Fix leak of an ast_str in error handling code path. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@360413 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_curl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 130d5a6240..294ea2621d 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -595,6 +595,7 @@ static int acf_curl_helper(struct ast_channel *chan, const char *cmd, char *info if (!(curl = ast_threadstorage_get(&curl_instance, sizeof(*curl)))) { ast_log(LOG_ERROR, "Cannot allocate curl structure\n"); + ast_free(str); return -1; }