aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_curl.c')
-rw-r--r--funcs/func_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index f7b5ce75f..38c63196c 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -160,7 +160,7 @@ static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info,
chunk.memory[chunk.size - 1] = '\0';
ast_copy_string(buf, chunk.memory, len);
- free(chunk.memory);
+ ast_free(chunk.memory);
}
} else {
ast_log(LOG_ERROR, "Cannot allocate curl structure\n");