aboutsummaryrefslogtreecommitdiff
path: root/sftsr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftsr.c')
-rw-r--r--sftsr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sftsr.c b/sftsr.c
index 245872a..6c4c99e 100644
--- a/sftsr.c
+++ b/sftsr.c
@@ -464,6 +464,8 @@ static void handle_close(union INTPACK __far *r)
return;
}
+ dos_sft_decref(sft);
+
data.files[openfile].root = SHFL_ROOT_NIL;
data.files[openfile].handle = SHFL_HANDLE_NIL;