diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-09 12:10:08 +0300 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:20:59 +0100 |
commit | 3c20dac38c774afe2dfb769451a1d987c21f9c65 (patch) | |
tree | f7d452ced8ebf76f1a99a584dd75c53a06028685 /src/codec_amr.c | |
parent | a4d88ae13bc60e3f6269334d633495668af0c640 (diff) |
libosmogapk: use talloc for memory management
Diffstat (limited to 'src/codec_amr.c')
-rw-r--r-- | src/codec_amr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/codec_amr.c b/src/codec_amr.c index 2fa7a2f..df35b49 100644 --- a/src/codec_amr.c +++ b/src/codec_amr.c @@ -27,8 +27,7 @@ #ifdef HAVE_OPENCORE_AMRNB -#include <stdlib.h> -#include <stdio.h> +#include <talloc.h> #include <opencore-amrnb/interf_dec.h> #include <opencore-amrnb/interf_enc.h> @@ -44,7 +43,7 @@ codec_amr_init(void) { struct codec_amr_state *st; - st = calloc(1, sizeof(*st)); + st = talloc_zero(NULL, struct codec_amr_state); if (!st) return NULL; |