summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-05-16 20:41:29 +0200
committerDave Davenport <qball@gmpclient.org>2018-05-16 22:04:24 +0200
commita81e96fee7e17f0abe04da306b781f3e93328c48 (patch)
tree6fbb199559d9b558fad07ab095b7cf2bf1350d91 /source
parent2da5e5ee5568145884eebbeb1a012559466a644b (diff)
Fix small memory leak in history.
Diffstat (limited to 'source')
-rw-r--r--source/history.c3
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;
}