From a108eeee0e5fb2d360430cf71c40b35ccb22eaa5 Mon Sep 17 00:00:00 2001 From: rilysh Date: Fri, 22 Sep 2023 00:49:48 -0400 Subject: [PATCH] close file ptr before abort() --- User/Library/UserFile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/User/Library/UserFile.c b/User/Library/UserFile.c index 3f13b11990c..d6c411b7852 100644 --- a/User/Library/UserFile.c +++ b/User/Library/UserFile.c @@ -131,6 +131,7 @@ UserWriteFile ( } if (fwrite (Data, Size, 1, FilePtr) != 1) { + fclose (FilePtr); abort (); }