From: Tzafrir Cohen Date: Tue, 10 Oct 2017 14:49:15 +0000 (+0300) Subject: cdr_mysql: avoid releasing a config string X-Git-Tag: 13.18.0-rc1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e05796e81a2a2f17dcaa790ec1d3ffa21989eb4;p=thirdparty%2Fasterisk.git 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 --- diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c index b8d9ce3aff..ebe19ad95d 100644 --- a/addons/cdr_mysql.c +++ b/addons/cdr_mysql.c @@ -517,7 +517,6 @@ static int my_load_module(int reload) } else { calldate_compat = 0; } - ast_free(compat); if (res < 0) { if (reload) {