From 40b5c439202457f3b2d5d16f322d23ffa3aa5895 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Jan 2022 12:14:42 +0530 Subject: [PATCH] ... --- kitty/fast-file-copy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fast-file-copy.h b/kitty/fast-file-copy.h index 986d0f64e..39dda9b74 100644 --- a/kitty/fast-file-copy.h +++ b/kitty/fast-file-copy.h @@ -14,7 +14,7 @@ typedef struct FastFileCopyBuffer { } FastFileCopyBuffer; static inline void -free_fast_file_copy_buffer(FastFileCopyBuffer *fcb) { free(fcb->buf); } +free_fast_file_copy_buffer(FastFileCopyBuffer *fcb) { free(fcb->buf); fcb->buf = NULL; } #define FREE_FCB_AFTER_FUNCTION __attribute__ ((__cleanup__(free_fast_file_copy_buffer))) #define AutoFreeFastFileCopyBuffer FREE_FCB_AFTER_FUNCTION FastFileCopyBuffer