From f83c89cce7fe529bcf9ad19e8fe1287c1a01ab8b Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 25 Feb 2023 15:40:52 +0100 Subject: [PATCH] When path is NULL, we don't need to free it. --- src/osdi/osdiregistry.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osdi/osdiregistry.c b/src/osdi/osdiregistry.c index 827bbe6a0..dc5c47756 100644 --- a/src/osdi/osdiregistry.c +++ b/src/osdi/osdiregistry.c @@ -288,7 +288,6 @@ extern OsdiObjectFile load_object_file(const char *input) { if (!path) { fprintf(stderr, "Error opening osdi lib \"%s\": No such file or directory!\n", input); - txfree(path); return INVALID_OBJECT; }