summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index a04a63bab..1cfb3a765 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -8540,16 +8540,16 @@ static void delete_devices(void)
}
/* Delete all speeddials for this device */
while ((sd = AST_LIST_REMOVE_HEAD(&d->speeddials, list))) {
- free(sd->container);
- free(sd);
+ ast_free(sd->container);
+ ast_free(sd);
}
/* Delete all serviceurls for this device */
while ((surl = AST_LIST_REMOVE_HEAD(&d->serviceurls, list))) {
- free(surl);
+ ast_free(surl);
}
/* Delete all addons for this device */
while ((a = AST_LIST_REMOVE_HEAD(&d->addons, list))) {
- free(a);
+ ast_free(a);
}
d = skinny_device_destroy(d);
}
@@ -8603,11 +8603,11 @@ int skinny_reload(void)
}
/* Delete all speeddials for this device */
while ((sd = AST_LIST_REMOVE_HEAD(&d->speeddials, list))) {
- free(sd);
+ ast_free(sd);
}
/* Delete all addons for this device */
while ((a = AST_LIST_REMOVE_HEAD(&d->addons, list))) {
- free(a);
+ ast_free(a);
}
AST_LIST_REMOVE_CURRENT(list);
d = skinny_device_destroy(d);