Skip to content

Commit 5dad327

Browse files
[qoflog.cpp] plug a gchar* leak
1 parent c8348fa commit 5dad327

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libgnucash/engine/qoflog.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ qof_log_shutdown (void)
269269
fout = nullptr;
270270
}
271271

272+
if (qof_logger_format)
273+
{
274+
g_free (qof_logger_format);
275+
qof_logger_format = nullptr;
276+
}
277+
272278
if (function_buffer)
273279
{
274280
g_free(function_buffer);

0 commit comments

Comments
 (0)