]> 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)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 11 Oct 2017 22:30:50 +0000 (17:30 -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 667e6a2bf0e2b166fca5f24a2bc6791c64dd6b11..07849b0c1fa27c061b6ea8a62b715cd51d5a5571 100644 (file)
@@ -512,7 +512,6 @@ static int my_load_module(int reload)
        } else {
                calldate_compat = 0;
        }
-       ast_free(compat);
 
        if (res < 0) {
                if (reload) {