]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
cdr_mysql: avoid releasing a config string
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 10 Oct 2017 14:49:15 +0000 (17:49 +0300)
committerSean Bright <sean.bright@gmail.com>
Wed, 11 Oct 2017 20:14:32 +0000 (15:14 -0500)
Fixes a memory corruption issue after a reload of cdr_mysql.

Issue was accidentally included in 747beb1ed159f89a3b58742e4257740b3d6d6bba .

ASTERISK-27270 #close

Change-Id: I90b6a9d18710c0f9009466370bd5f4bac5d5d12e

addons/cdr_mysql.c

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