aboutsummaryrefslogtreecommitdiff
path: root/jffsX-utils
diff options
context:
space:
mode:
Diffstat (limited to 'jffsX-utils')
-rw-r--r--jffsX-utils/mkfs.jffs2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jffsX-utils/mkfs.jffs2.c b/jffsX-utils/mkfs.jffs2.c
index 0661786..f46cc22 100644
--- a/jffsX-utils/mkfs.jffs2.c
+++ b/jffsX-utils/mkfs.jffs2.c
@@ -151,6 +151,7 @@ static char *xreadlink(const char *path)
readsize = readlink(path, buf, bufsize); /* 1st try */
if (readsize == -1) {
sys_errmsg("%s:%s", PROGRAM_NAME, path);
+ free(buf);
return NULL;
}
}