diff options
Diffstat (limited to 'res/res_phoneprov.c')
-rw-r--r-- | res/res_phoneprov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index e9a6b8fb4..b8b52787d 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -272,7 +272,7 @@ static int profile_cmp_fn(void *obj, void *arg, int flags) static void delete_file(struct phoneprov_file *file) { ast_string_field_free_memory(file); - free(file); + ast_free(file); } static void profile_destructor(void *obj) @@ -340,7 +340,7 @@ static int load_file(const char *filename, char **ret) return -2; if (len != fread(*ret, sizeof(char), len, f)) { - free(*ret); + ast_free(*ret); *ret = NULL; return -3; } |