[Asterisk-code-review] cdr mysql: avoid releasing a config string (asterisk[13])
Sean Bright
asteriskteam at digium.com
Wed Oct 11 15:14:32 CDT 2017
Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/6754
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/54/6754/1
diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c
index b8d9ce3..ebe19ad 100644
--- a/addons/cdr_mysql.c
+++ b/addons/cdr_mysql.c
@@ -517,7 +517,6 @@
} else {
calldate_compat = 0;
}
- ast_free(compat);
if (res < 0) {
if (reload) {
--
To view, visit https://gerrit.asterisk.org/6754
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
Gerrit-Change-Number: 6754
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171011/d7dd54ef/attachment.html>
More information about the asterisk-code-review
mailing list