aboutsummaryrefslogtreecommitdiffstats
path: root/help.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-09-16 03:36:48 -0300
committerdequis <dx@dxzone.com.ar>2015-10-08 01:58:59 -0300
commitc2969f9feb1878cc9dbe143b7adeda56b66557e6 (patch)
tree964c89d938250425681ec53c22901f95f18587e8 /help.c
parent3cbf71d6e8232b8309e927b9f17857ac079a016f (diff)
conf, help: Fix minor leaks in error conditions
From coverity.
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 {