Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-12-08 21:13:20 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-12-08 22:42:28 +0300
commita0fb010fd0bd8e465b8ac2d5234f3bd16a94b2ad (patch)
tree752d4dde2cc31c21ba243697bbb3b4f9696ebece /src/picture.c
parent488374c79eed9be44fd5b08fa9b52ec9ecaa21f7 (diff)
picture: free pic_ctx on dav1d_ref_wrap error
Diffstat (limited to 'src/picture.c')
-rw-r--r--src/picture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/picture.c b/src/picture.c
index 745cd17..ba51d82 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -133,6 +133,7 @@ static int picture_alloc_with_edges(Dav1dPicture *const p,
if (!(p->ref = dav1d_ref_wrap(p->data[0], free_buffer, pic_ctx))) {
p_allocator->release_picture_callback(p, p_allocator->cookie);
+ free(pic_ctx);
fprintf(stderr, "Failed to wrap picture: %s\n", strerror(errno));
return -ENOMEM;
}