From 5aaf2082445032b5c0f49346a81453074d384cb3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 23 Nov 2025 20:51:20 +0100 Subject: text-io: do not free the temporary file name before unlinking the file --- text-io.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'text-io.c') 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; } -- cgit v1.2.3