summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstdbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstdbuf.c b/src/libstdbuf.c
index 2ef848f86..50eebb12c 100644
--- a/src/libstdbuf.c
+++ b/src/libstdbuf.c
@@ -123,6 +123,7 @@ apply_mode (FILE *stream, const char *mode)
{
fprintf (stderr, _("could not set buffering of %s to mode %s\n"),
fileno_to_name (fileno (stream)), mode);
+ free (buf);
}
}