summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-06-01 13:57:53 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-06-01 14:09:36 -0500
commit40d19f2e5531fd3455e21a51e39a7244580609bb (patch)
treeab5979f47992da392141afa2e527a95cc22bf386 /main/logger.c
parent608e0267e8512e16e186cbdc874cd7902e287ff7 (diff)
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
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c
index ae1e0bd8d..9a16dcf13 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -174,6 +174,7 @@ struct logmsg {
static void logmsg_free(struct logmsg *msg)
{
+ ast_string_field_free_memory(msg);
ast_free(msg);
}