From a81e96fee7e17f0abe04da306b781f3e93328c48 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 16 May 2018 20:41:29 +0200 Subject: Fix small memory leak in history. --- source/history.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') diff --git a/source/history.c b/source/history.c index 277ebf58..480fdc22 100644 --- a/source/history.c +++ b/source/history.c @@ -113,6 +113,9 @@ static char ** __history_get_element_list_fields ( FILE *fd, unsigned int *lengt ( *length )++; } + if ( buffer_length > 0 ){ + g_free ( buffer ); + } return retv; } -- cgit v1.2.3