staging: mmal-vchiq: Free the event context for control ports
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 1 May 2019 12:27:23 +0000 (13:27 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:32 +0000 (00:08 +0100)
commit06e48eb965dff55f5c2c3b55095704690f9cebe8
treedec551ca0287d37d48a5615dad442da9adbe9b12
parent3123a749e2eb9bf6e1cb58593ed3ff60cb9bd718
staging: mmal-vchiq: Free the event context for control ports

vchiq_mmal_component_init calls init_event_context for the
control port, but vchiq_mmal_component_finalise didn't free
it, causing a memory leak..

Add the free call.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c