From 3661f3f3f5c02f430a8583e8f323499c5e538030 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Fri, 21 Aug 2015 18:26:12 +0300 Subject: [PATCH] Fix incorrect free on error --- src/encmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encmain.c b/src/encmain.c index 04d36356..b41df894 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) img_in = frame_in; } else { // EOF or some error - api->picture_free(img_in); + api->picture_free(frame_in); img_in = NULL; if (!feof(input)) { fprintf(stderr, "Failed to read a frame %d\n", frames_read);