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
committed by Sean Bright
parent 4a2caab4f6
commit 8e05796e81

View File

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