fix(tests/shared/env): memory leak

This commit is contained in:
Leonardo de Moura 2015-08-23 09:24:05 -07:00
parent b42e561bb1
commit 2926b41e9f

View file

@ -226,6 +226,7 @@ void print_decl_name_and_del(lean_decl d) {
check(lean_decl_get_name(d, &n, &ex));
check(lean_name_to_string(n, &s, &ex));
printf("declaration name: %s\n", s);
lean_name_del(n);
lean_string_del(s);
lean_decl_del(d);
}