From bd4ea8424247be0473df4ecf0b8e2514becde407 Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 18 May 2013 17:06:54 -0700 Subject: [PATCH] Edge case for when you are subscribing to presence on a valet parking lot. In which case there would be a small leak. --- src/mod/applications/mod_valet_parking/mod_valet_parking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_valet_parking/mod_valet_parking.c b/src/mod/applications/mod_valet_parking/mod_valet_parking.c index fe8f34804d..6ec4f2dbb5 100644 --- a/src/mod/applications/mod_valet_parking/mod_valet_parking.c +++ b/src/mod/applications/mod_valet_parking/mod_valet_parking.c @@ -24,6 +24,7 @@ * Contributor(s): * * Anthony Minessale II + * William King * * mod_valet_parking.c -- Valet Parking Module * @@ -885,6 +886,7 @@ static void pres_event_handler(switch_event_t *event) switch_mutex_unlock(lot->mutex); } + switch_console_free_matches(&matches); } }