From f3a4b343b09a431f708e74870ce1a1021c94c93a Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 11 Jun 2023 15:07:13 +0200 Subject: fix ktest-randgen: use after free --- tools/ktest-randgen/ktest-randgen.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'tools') diff --git a/tools/ktest-randgen/ktest-randgen.cpp b/tools/ktest-randgen/ktest-randgen.cpp index 4bf3e23c..19a4a0d6 100644 --- a/tools/ktest-randgen/ktest-randgen.cpp +++ b/tools/ktest-randgen/ktest-randgen.cpp @@ -114,7 +114,6 @@ void create_stat(size_t size, struct stat *s) { if (write(fd, memset(buf, 0, size), size) != (int)size) { free(buf); - free(filename); error_exit("%s:%d: Error writing %s\n", __FILE__, __LINE__, filename); } #if defined(__has_feature) -- cgit 1.4.1