aboutsummaryrefslogtreecommitdiffstats
path: root/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'help.c')
-rw-r--r--help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/help.c b/help.c
index 65f2ba47..07ba2102 100644
--- a/help.c
+++ b/help.c
@@ -145,6 +145,7 @@ char *help_get(help_t **help, char *title)
if (lseek(h->fd, h->offset.file_offset, SEEK_SET) == -1 ||
read(h->fd, s, h->length) != h->length) {
+ g_free(s);
return NULL;
}
} else {