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/http.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/http.c')
-rw-r--r-- | libav/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libav/http.c b/libav/http.c index d3cf883f79..940883b4f4 100644 --- a/libav/http.c +++ b/libav/http.c @@ -58,7 +58,7 @@ static int http_open(URLContext *h, const char *uri, int flags) h->is_streamed = 1; - s = malloc(sizeof(HTTPContext)); + s = av_malloc(sizeof(HTTPContext)); if (!s) { return -ENOMEM; } @@ -129,7 +129,7 @@ static int http_open(URLContext *h, const char *uri, int flags) fail: if (fd >= 0) close(fd); - free(s); + av_free(s); return -EIO; } |