From 92c8055bb11b553319830703faf60de15a6a1bc1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 22 Nov 2014 03:18:25 +0100 Subject: Fix broken memory leak check in legacy API This was a check for the realloc() call, but the result was never used in the success case - which makes no sense. Doesn't really matter, because it's the legacy charset code which hopefully is not used by anyone. Found by Coverity. --- libass/ass.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libass/ass.c') diff --git a/libass/ass.c b/libass/ass.c index 75f646f..04ce895 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -1002,6 +1002,7 @@ static char *sub_recode(ASS_Library *library, char *data, size_t size, outbuf = 0; goto out; } + outbuf = nbuf; op = outbuf + offset; osize += size; oleft += size; -- cgit v1.2.3