Commit 06e48eb9 authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

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: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent 3123a749
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1981,6 +1981,8 @@ int vchiq_mmal_component_finalise(struct vchiq_mmal_instance *instance,
	for (idx = 0; idx < component->clocks; idx++)
		free_event_context(&component->clock[idx]);

	free_event_context(&component->control);

	mutex_unlock(&instance->vchiq_mutex);

	return ret;