Skip to content

Commit

Permalink
JS: Fix storage.virtualQuit() not freeing file handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Apr 5, 2024
1 parent 41ac418 commit 2f06a01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions applications/system/js_app/modules/js_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ static void js_storage_virtual_mount(struct mjs* mjs) {
return;
}

if(storage->virtual) {
storage_file_free(storage->virtual);
storage->virtual = NULL;
}

mjs_return(mjs, MJS_UNDEFINED);
}

Expand Down

0 comments on commit 2f06a01

Please sign in to comment.