Earlier commit plugged a memory leak, although it missed a pair of
brackets. Thus we unconditionally returned even in the case of no error.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95203
Fixes: b87856d25d1 ("st/omx: Fix resource leak on OMX_ErrorNone")
Tested-by: Andy Furniss <adf.lists@gmail.com>
Acked-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
---
What an embarassing bug - missing brackets. Andy can you confirm that it
resolves the issue ?
} else {
/* ------- load input image into video buffer ---- */
err = enc_LoadImage(port, buf, task->buf);
- if (err != OMX_ErrorNone)
+ if (err != OMX_ErrorNone) {
FREE(task);
return err;
+ }
}
/* -------------- determine picture type --------- */