Missed a memory leak

This commit is contained in:
2022-09-05 06:40:48 +01:00
parent 7fb9ebbce0
commit 9ce5f6e67e

View File

@@ -120,8 +120,10 @@ void freeInterpreter(Interpreter* interpreter) {
interpreter->scope = popScope(interpreter->scope);
}
freeLiteralDictionary(interpreter->exports);
FREE(LiteralDictionary, interpreter->exports);
interpreter->exports = NULL;
freeLiteralDictionary(interpreter->exportTypes);
FREE(LiteralDictionary, interpreter->exportTypes);
interpreter->exportTypes = NULL;