[asterisk-commits] cdr mysql: avoid releasing a config string (asterisk[15])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 11 19:45:45 CDT 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6755 )

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(-)

Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved
  Jenkins2: Approved for Submit



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/6755
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
Gerrit-Change-Number: 6755
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20171011/14272132/attachment.html>


More information about the asterisk-commits mailing list