diff options
author | Dave Davenport <qball@gmpclient.org> | 2018-05-16 20:41:29 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2018-05-16 22:04:24 +0200 |
commit | a81e96fee7e17f0abe04da306b781f3e93328c48 (patch) | |
tree | 6fbb199559d9b558fad07ab095b7cf2bf1350d91 /source | |
parent | 2da5e5ee5568145884eebbeb1a012559466a644b (diff) |
Fix small memory leak in history.
Diffstat (limited to 'source')
-rw-r--r-- | source/history.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |