aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-11-23 20:51:20 +0100
committerRandy Palamar <randy@rnpnr.xyz>2025-11-24 05:24:56 -0700
commit5aaf2082445032b5c0f49346a81453074d384cb3 (patch)
treee1a2e50c9e41044eaa7cfba25ec8666bf0c08bb3
parenta730d3433ff0afc517eae8ddf4cd80997a9cd2a1 (diff)
downloadvis-5aaf2082445032b5c0f49346a81453074d384cb3.tar.gz
vis-5aaf2082445032b5c0f49346a81453074d384cb3.tar.xz
text-io: do not free the temporary file name before unlinking the file
-rw-r--r--text-io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/text-io.c b/text-io.c
index 97fc138..bd5eee7 100644
--- a/text-io.c
+++ b/text-io.c
@@ -327,8 +327,6 @@ err:
if (ctx->fd != -1)
close(ctx->fd);
ctx->fd = -1;
- free(ctx->tmpname);
- ctx->tmpname = NULL;
errno = saved_errno;
return false;
}