summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-09-23 16:24:06 +0200
committerJo-Philipp Wich <jo@mein.io>2024-09-23 16:24:06 +0200
commit67cd1232389fa407575b1e130b6b5668b18b0e7f (patch)
treea162f6b9c5bb2328fe517ffcc5a255fb06b39415 /lexer.c
parentb610860dd4a0591ff586dd71a50f556a0ddafced (diff)
fs: fix potential memory leak on i/o errors in .read()
Make sure to free the line buffer pointer when aborting a `getline()` / `getdelim()` based read operation on i/o errors. As an example, this issue could be triggered by receiving a broken pipe error while attempting to read a line from stdin. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lexer.c')
0 files changed, 0 insertions, 0 deletions