[Asterisk-code-review] cdr mysql: avoid releasing a config string (asterisk[master])

Tzafrir Cohen asteriskteam at digium.com
Tue Oct 10 09:53:20 CDT 2017


Tzafrir Cohen has uploaded this change for review. ( https://gerrit.asterisk.org/6721


Change subject: cdr_mysql: avoid releasing a config string
......................................................................

cdr_mysql: avoid releasing a config string

Fixes a memory corruption issue after a reload of cdr_mysql.

Issue was accidentally included in 747beb1ed159f89a3b58742e4257740b3d6d6bba .

ASTERISK-27270 #close

Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
---
M addons/cdr_mysql.c
1 file changed, 0 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/21/6721/1

diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c
index 1c11663..1f97362 100644
--- a/addons/cdr_mysql.c
+++ b/addons/cdr_mysql.c
@@ -510,7 +510,6 @@
 	} else {
 		calldate_compat = 0;
 	}
-	ast_free(compat);
 
 	if (res < 0) {
 		if (reload) {

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
Gerrit-Change-Number: 6721
Gerrit-PatchSet: 1
Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171010/e1df3e5d/attachment.html>


More information about the asterisk-code-review mailing list