aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicestate.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 21:20:11 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-06 21:20:11 +0000
commiteb5d461ed4688cafadc76bebf329a2fae454dc12 (patch)
tree5503cb153c9de46c07e3a0a521cc996926ed375b /main/devicestate.c
parent125558c76fd4870a9133e4974cce6410c89a3593 (diff)
Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/devicestate.c')
-rw-r--r--main/devicestate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index f8e1a337a..d682602d6 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -339,7 +339,7 @@ int ast_devstate_prov_del(const char *label)
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&devstate_provs, devcb, list) {
if (!strcasecmp(devcb->label, label)) {
AST_RWLIST_REMOVE_CURRENT(&devstate_provs, list);
- free(devcb);
+ ast_free(devcb);
res = 0;
break;
}
@@ -463,7 +463,7 @@ static void *do_devstate_changes(void *data)
while ((current = next)) {
next = AST_LIST_NEXT(current, list);
do_state_change(current->device);
- free(current);
+ ast_free(current);
}
}