From ca2f3e5b99c81ccfaae1a3269c2437d9e436c367 Mon Sep 17 00:00:00 2001
From: Badalyan Vyacheslav <v.badalyan@open-bs.ru>
Date: Sun, 9 Oct 2016 22:53:07 -0400
Subject: [PATCH] cel_odbc: Fix memory leak on module unload

Change-Id: Ic7a1236eba2408090fdabb5f717b5fa455ead715
---
 cel/cel_odbc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cel/cel_odbc.c b/cel/cel_odbc.c
index 3c0be04e84..a10aadae95 100644
--- a/cel/cel_odbc.c
+++ b/cel/cel_odbc.c
@@ -291,6 +291,7 @@ static int load_config(void)
 		else
 			ast_free(tableptr);
 	}
+	ast_config_destroy(cfg);
 	return res;
 }
 
-- 
GitLab