From e3aad1a249dcda247e0e7235b4b4a86ebcfdadc6 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Mon, 6 Feb 2023 11:27:26 +0800 Subject: [PATCH] fix dumb unlink issue --- src/exec_checkra1n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec_checkra1n.c b/src/exec_checkra1n.c index 55b37ac..2b2594d 100644 --- a/src/exec_checkra1n.c +++ b/src/exec_checkra1n.c @@ -75,8 +75,8 @@ checkra1n_exec: {}; } LOG(LOG_VERBOSE2, "%s spawned successfully", checkra1n_path); sleep(2); - if (ext_checkra1n != NULL) unlink(checkra1n_path); if (ext_checkra1n == NULL) { + unlink(checkra1n_path); free(checkra1n_path); checkra1n_path = NULL; }