summaryrefslogtreecommitdiff
path: root/libav/http.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-18 23:11:09 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-18 23:11:09 +0000
commit1ea4f593658c8b161a0a725252058b49c16a6b29 (patch)
tree5bf96a2a7242b8a0c227a196a3368188a77f9d8e /libav/http.c
parent065422677a17ddb3d84a3b85b5064eb7df7e2c8a (diff)
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.c4
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;
}