From 3d382fe53141163fe51003cc73c93e45e421c6ef Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 5 Jun 2023 20:02:34 +0100 Subject: [PATCH] Debug: Fix compilation error when using RANDOM_DEBUG --- src/debug.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index ba819c79bd..8f258dd496 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -174,7 +174,6 @@ void debug_print(const char *dbg, const char *buf) unsigned int num = 0; int pid = getpid(); for(;;) { - free(fn); std::string fn = stdstr_fmt("random-out-%d-%u.log", pid, num); f = FioFOpenFile(fn.c_str(), "wx", AUTOSAVE_DIR); if (f == nullptr && errno == EEXIST) {