summaryrefslogtreecommitdiff
path: root/src/inp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inp.c')
-rw-r--r--src/inp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inp.c b/src/inp.c
index e5299c9..47705eb 100644
--- a/src/inp.c
+++ b/src/inp.c
@@ -267,7 +267,10 @@ plan_a (char const *filename)
size = n;
}
else
- return false;
+ {
+ free (buffer);
+ return false;
+ }
}
/* Scan the buffer and build array of pointers to lines. */