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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:51 +0000 (11:32 +0000)
commite1d6be073a22f8f0447b32540fc9189e29906378
tree1351cad821062089e5787a3e98dc67e9031df4ce
parent0466374769f8c2eca94ff78cfda50b56ba143aa0
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