==677== Memcheck, a memory error detector ==677== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==677== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==677== Command: gawk -f test.awk ==677== Parent PID: 312 ==677== ==677== ==677== HEAP SUMMARY: ==677== in use at exit: 167,542 bytes in 708 blocks ==677== total heap usage: 65,616 allocs, 64,908 frees, 4,331,236 bytes allocated ==677== ==677== 244 bytes in 10 blocks are possibly lost in loss record 86 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x469124: emalloc_real (awk.h:1820) ==677== by 0x469B3E: r_dupnode (node.c:318) ==677== by 0x4446EF: dupnode (awk.h:1770) ==677== by 0x448AF7: r_interpret (interpret.h:360) ==677== by 0x462EA5: main (main.c:518) ==677== ==677== 256 bytes in 1 blocks are possibly lost in loss record 92 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x426FB2: emalloc_real (awk.h:1820) ==677== by 0x428467: tree_lookup (cint_array.c:757) ==677== by 0x42743C: cint_lookup (cint_array.c:244) ==677== by 0x40BE1A: null_lookup (array.c:150) ==677== by 0x448904: r_interpret (interpret.h:309) ==677== by 0x462EA5: main (main.c:518) ==677== ==677== 512 bytes in 2 blocks are possibly lost in loss record 102 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x426FB2: emalloc_real (awk.h:1820) ==677== by 0x428E2B: leaf_lookup (cint_array.c:1050) ==677== by 0x4285DB: tree_lookup (cint_array.c:782) ==677== by 0x42743C: cint_lookup (cint_array.c:244) ==677== by 0x40BE1A: null_lookup (array.c:150) ==677== by 0x4533CD: set_element (field.c:935) ==677== by 0x452D73: sc_parse_field (field.c:722) ==677== by 0x4538B5: do_split (field.c:1036) ==677== by 0x44A8E5: r_interpret (interpret.h:940) ==677== by 0x40E17B: sort_user_func (array.c:1225) ==677== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== ==677== 512 bytes in 2 blocks are possibly lost in loss record 103 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x426FB2: emalloc_real (awk.h:1820) ==677== by 0x428467: tree_lookup (cint_array.c:757) ==677== by 0x42743C: cint_lookup (cint_array.c:244) ==677== by 0x40BE1A: null_lookup (array.c:150) ==677== by 0x4533CD: set_element (field.c:935) ==677== by 0x452D73: sc_parse_field (field.c:722) ==677== by 0x4538B5: do_split (field.c:1036) ==677== by 0x44A8E5: r_interpret (interpret.h:940) ==677== by 0x40E17B: sort_user_func (array.c:1225) ==677== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== by 0x5A88F6B: qsort_r (in /usr/lib64/libc-2.17.so) ==677== ==677== 630 bytes in 26 blocks are possibly lost in loss record 105 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x469124: emalloc_real (awk.h:1820) ==677== by 0x469E5C: make_str_node (node.c:396) ==677== by 0x453385: set_element (field.c:932) ==677== by 0x452D73: sc_parse_field (field.c:722) ==677== by 0x4538B5: do_split (field.c:1036) ==677== by 0x44A8E5: r_interpret (interpret.h:940) ==677== by 0x40E17B: sort_user_func (array.c:1225) ==677== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== by 0x5A88F6B: qsort_r (in /usr/lib64/libc-2.17.so) ==677== by 0x40E59F: assoc_list (array.c:1356) ==677== by 0x44A666: r_interpret (interpret.h:900) ==677== ==677== 2,125 bytes in 23 blocks are possibly lost in loss record 114 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x40BAB3: emalloc_real (awk.h:1820) ==677== by 0x40C6A9: concat_exp (array.c:420) ==677== by 0x44A259: r_interpret (interpret.h:817) ==677== by 0x462EA5: main (main.c:518) ==677== ==677== 8,800 bytes in 1 blocks are possibly lost in loss record 131 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x469124: emalloc_real (awk.h:1820) ==677== by 0x46AFB9: more_blocks (node.c:1003) ==677== by 0x469C73: r_make_number (node.c:339) ==677== by 0x4293C7: leaf_list (cint_array.c:1179) ==677== by 0x428A2C: tree_list (cint_array.c:911) ==677== by 0x427D63: cint_list (cint_array.c:469) ==677== by 0x40E51E: assoc_list (array.c:1348) ==677== by 0x44A666: r_interpret (interpret.h:900) ==677== by 0x462EA5: main (main.c:518) ==677== ==677== 8,800 bytes in 1 blocks are possibly lost in loss record 132 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x469124: emalloc_real (awk.h:1820) ==677== by 0x46AFB9: more_blocks (node.c:1003) ==677== by 0x469C73: r_make_number (node.c:339) ==677== by 0x4533AB: set_element (field.c:934) ==677== by 0x452D73: sc_parse_field (field.c:722) ==677== by 0x4538B5: do_split (field.c:1036) ==677== by 0x44A8E5: r_interpret (interpret.h:940) ==677== by 0x40E17B: sort_user_func (array.c:1225) ==677== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== by 0x5A88A11: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== by 0x5A88A11: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==677== ==677== 17,600 bytes in 2 blocks are possibly lost in loss record 134 of 134 ==677== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==677== by 0x469124: emalloc_real (awk.h:1820) ==677== by 0x46AFB9: more_blocks (node.c:1003) ==677== by 0x451AB9: rebuild_record (field.c:201) ==677== by 0x4530F4: get_field (field.c:844) ==677== by 0x446A42: r_get_field (eval.c:1202) ==677== by 0x448A8F: r_interpret (interpret.h:352) ==677== by 0x462EA5: main (main.c:518) ==677== ==677== LEAK SUMMARY: ==677== definitely lost: 0 bytes in 0 blocks ==677== indirectly lost: 0 bytes in 0 blocks ==677== possibly lost: 39,479 bytes in 68 blocks ==677== still reachable: 128,063 bytes in 640 blocks ==677== suppressed: 0 bytes in 0 blocks ==677== Reachable blocks (those to which a pointer was found) are not shown. ==677== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==677== ==677== For counts of detected and suppressed errors, rerun with: -v ==677== ERROR SUMMARY: 9 errors from 9 contexts (suppressed: 0 from 0)