[Asterisk-code-review] cel odbc: Fix memory leak on module unload (asterisk[11])

Anonymous Coward asteriskteam at digium.com
Mon Oct 10 19:57:40 CDT 2016


Anonymous Coward #1000019 has submitted this change and it was merged.

Change subject: cel_odbc: Fix memory leak on module unload
......................................................................


cel_odbc: Fix memory leak on module unload

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

Approvals:
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
  Corey Farrell: Looks good to me, but someone else must approve



diff --git a/cel/cel_odbc.c b/cel/cel_odbc.c
index f416401..965fc9e 100644
--- a/cel/cel_odbc.c
+++ b/cel/cel_odbc.c
@@ -290,6 +290,7 @@
 		else
 			ast_free(tableptr);
 	}
+	ast_config_destroy(cfg);
 	return res;
 }
 

-- 
To view, visit https://gerrit.asterisk.org/4044
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic7a1236eba2408090fdabb5f717b5fa455ead715
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Badalian Vyacheslav <v.badalyan at open-bs.ru>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list