aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-05 16:46:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-05 16:46:46 +0000
commit06c62d60e947aaeb6bf5245369594aba4b13e5d2 (patch)
treee65d4ea3cc1b28d5357a994eaaf75abd857afdf6 /utils.c
parentd84eb5f102b7d16717f87a09cafe7cf42f0365d8 (diff)
use ast_malloc instead of malloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24880 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 3bd3623d3..807df16b2 100644
--- a/utils.c
+++ b/utils.c
@@ -781,7 +781,7 @@ size_t strnlen(const char *s, size_t n)
char *strndup(const char *s, size_t n)
{
size_t len = strnlen(s, n);
- char *new = malloc(len + 1);
+ char *new = ast_malloc(len + 1);
if (!new)
return NULL;
@@ -802,7 +802,7 @@ int vasprintf(char **strp, const char *fmt, va_list ap)
va_copy(ap2, ap);
size = vsnprintf(&s, 1, fmt, ap2);
va_end(ap2);
- *strp = malloc(size + 1);
+ *strp = ast_malloc(size + 1);
if (!*strp)
return -1;
vsnprintf(*strp, size + 1, fmt, ap);