From 11cefdf6215e665f82408ffbf596da7e9845be57 Mon Sep 17 00:00:00 2001
From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Date: Tue, 10 Oct 2017 17:49:15 +0300
Subject: [PATCH] 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
---
 addons/cdr_mysql.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c
index 1c116636fb..1f97362519 100644
--- a/addons/cdr_mysql.c
+++ b/addons/cdr_mysql.c
@@ -510,7 +510,6 @@ static int my_load_module(int reload)
 	} else {
 		calldate_compat = 0;
 	}
-	ast_free(compat);
 
 	if (res < 0) {
 		if (reload) {
-- 
GitLab