summaryrefslogtreecommitdiff
path: root/libav/http.c
diff options
context:
space:
mode:
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;
}