staging: mmal-vchiq: Fix memory leak in error path
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 2 May 2019 14:50:01 +0000 (15:50 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:54 +0000 (16:03 +0000)
commit47800e522f5bf8c7867716d4c4125267ed923c86
treea50458c6221e8cded071a5da780d76ae0236a8ea
parent9ce826ffd3aedf5c13659b040f9507171321601a
staging: mmal-vchiq: Fix memory leak in error path

On error, vchiq_mmal_component_init could leave the
event context allocated for ports.
Clean them up in the error path.

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