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

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


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

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 667e6a2..07849b0 100644
--- a/addons/cdr_mysql.c
+++ b/addons/cdr_mysql.c
@@ -512,7 +512,6 @@
 	} else {
 		calldate_compat = 0;
 	}
-	ast_free(compat);
 
 	if (res < 0) {
 		if (reload) {

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

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: merged
Gerrit-Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
Gerrit-Change-Number: 6758
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.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/69c5b350/attachment.html>


More information about the asterisk-commits mailing list