diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
commit | 1ea4f593658c8b161a0a725252058b49c16a6b29 (patch) | |
tree | 5bf96a2a7242b8a0c227a196a3368188a77f9d8e /libav/avio.c | |
parent | 065422677a17ddb3d84a3b85b5064eb7df7e2c8a (diff) | |
download | ffmpeg-1ea4f593658c8b161a0a725252058b49c16a6b29.tar.gz |
use av memory handling functions
Originally committed as revision 528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/avio.c')
-rw-r--r-- | libav/avio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libav/avio.c b/libav/avio.c index c3d9961db7..7f12571061 100644 --- a/libav/avio.c +++ b/libav/avio.c @@ -60,7 +60,7 @@ int url_open(URLContext **puc, const char *filename, int flags) } return -ENOENT; found: - uc = malloc(sizeof(URLContext)); + uc = av_malloc(sizeof(URLContext)); if (!uc) return -ENOMEM; uc->prot = up; @@ -69,7 +69,7 @@ int url_open(URLContext **puc, const char *filename, int flags) uc->packet_size = 1; /* default packet size */ err = up->url_open(uc, filename, flags); if (err < 0) { - free(uc); + av_free(uc); *puc = NULL; return err; } @@ -118,7 +118,7 @@ int url_close(URLContext *h) int ret; ret = h->prot->url_close(h); - free(h); + av_free(h); return ret; } |