@@ -304,6 +304,7 @@ LSUP_nt_parse_term (const char *rep, const LSUP_NSMap *map, LSUP_Term **term)
int ttype = lex (&it, term);
parse_done (&it);
+ fclose (stream);
switch (ttype) {
case T_IRIREF:
@@ -186,6 +186,7 @@ test_decode_nt_term()
for (int i = 0; i < TERM_CT - 2; i++) {
LSUP_Term *term;
EXPECT_PASS (nt_codec.term_decoder (start_nt[i], NULL, &term));
+ LSUP_term_free (term);
}
return 0;