From e2132dd3588b10538f7c67a92aa26b9b4a5bf1b5 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Wed, 1 Jun 2016 13:57:53 -0500 Subject: logging,cdr,cel: Fix stringfield memory leak. The stringfields refactor to allow adding stringfields to the end of a structure (f6f4cf459f43f072604927209b39646f84aaa2e2) exposed some incomplete cleanup code by some stringfield users. The most noticeable leaker is the logging system where there is a leak for every log message generated. ASTERISK-26078 #close Reported by: Etienne Lessard Patches: jira_asterisk_26078_v13.patch (license #5621) patch uploaded by Richard Mudgett Change-Id: If6a08b31336b492c3de6f9dfd07c447f8d5a8782 --- main/logger.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main') diff --git a/main/logger.c b/main/logger.c index 9f03b4efa..a70b6d15e 100644 --- a/main/logger.c +++ b/main/logger.c @@ -168,6 +168,7 @@ static void logmsg_free(struct logmsg *msg) if (msg->callid) { ast_callid_unref(msg->callid); } + ast_string_field_free_memory(msg); ast_free(msg); } -- cgit v1.2.3