2015-02-05 20:02 GMT-02:00 Paulo César Pereira de Andrade <paulo.cesar.pereira.de.andr...@gmail.com>:
[...] > ---8<--- > unset stuff[xyz][elem0] > unset stuff[xyz][elem1] > unset stuff[xyz][elem2] > unset stuff[xyz][elem3] > unset stuff[xyz][elem4] > unset stuff[xyz] > ---8<--- > > that does not leak. The other case that does not leak > is "unset -f stuff[xyz]", but it is because it does nothing, > i.e. the same as commenting the "unset x[yz]" line. unsetting all sub variables still leaks. ---8<--- ==14749== 370,000 (103,584 direct, 266,416 indirect) bytes in 996 blocks are definitely lost in loss record 136 of 136 ==14749== at 0x4C2A1D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==14749== by 0x418253: nv_associative (array.c:1674) ==14749== by 0x41632A: nv_setarray (array.c:1000) ==14749== by 0x4893B0: setall (typeset.c:709) ==14749== by 0x4883F9: b_typeset (typeset.c:457) ---8<--- [...] Thanks, Paulo _______________________________________________ ast-users mailing list ast-users@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-users