aboutsummaryrefslogtreecommitdiff
path: root/sftsr.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-13 02:47:39 +0200
committerJavier <dev.git@javispedro.com>2022-04-13 02:47:39 +0200
commita77ce98811ba6040dafec8f75b5387ae5b2813aa (patch)
tree035b7046d3543cc14c6be2dc67ba136ac09ea572 /sftsr.c
parent8424f752f8f679cd5f5f9a2715d54a41f8885b0a (diff)
downloadvbados-a77ce98811ba6040dafec8f75b5387ae5b2813aa.tar.gz
vbados-a77ce98811ba6040dafec8f75b5387ae5b2813aa.zip
fix sft leak
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;