cdr_mysql: avoid releasing a config string

Fixes a memory corruption issue after a reload of cdr_mysql.

Issue was accidentally included in 747beb1ed1 .

ASTERISK-27270 #close

Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e
This commit is contained in:
Tzafrir Cohen
2017-10-10 17:49:15 +03:00
parent f006310bd1
commit 11cefdf621

View File

@@ -510,7 +510,6 @@ static int my_load_module(int reload)
} else {
calldate_compat = 0;
}
ast_free(compat);
if (res < 0) {
if (reload) {