==1077== Memcheck, a memory error detector ==1077== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==1077== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==1077== Command: gawk -f test.awk ==1077== Parent PID: 312 ==1077== ==1077== ==1077== HEAP SUMMARY: ==1077== in use at exit: 175,260 bytes in 730 blocks ==1077== total heap usage: 43,100 allocs, 42,370 frees, 2,906,196 bytes allocated ==1077== ==1077== 70 bytes in 3 blocks are possibly lost in loss record 75 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x469124: emalloc_real (awk.h:1820) ==1077== by 0x469B3E: r_dupnode (node.c:318) ==1077== by 0x4446EF: dupnode (awk.h:1770) ==1077== by 0x448AF7: r_interpret (interpret.h:360) ==1077== by 0x462EA5: main (main.c:518) ==1077== ==1077== 269 bytes in 1 blocks are possibly lost in loss record 96 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x451346: emalloc_real (awk.h:1820) ==1077== by 0x4518DC: rebuild_record (field.c:166) ==1077== by 0x4530F4: get_field (field.c:844) ==1077== by 0x446A42: r_get_field (eval.c:1202) ==1077== by 0x448A8F: r_interpret (interpret.h:352) ==1077== by 0x462EA5: main (main.c:518) ==1077== ==1077== 485 bytes in 18 blocks are possibly lost in loss record 102 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x469124: emalloc_real (awk.h:1820) ==1077== by 0x469E5C: make_str_node (node.c:396) ==1077== by 0x453385: set_element (field.c:932) ==1077== by 0x452D73: sc_parse_field (field.c:722) ==1077== by 0x4538B5: do_split (field.c:1036) ==1077== by 0x44A8E5: r_interpret (interpret.h:940) ==1077== by 0x40E17B: sort_user_func (array.c:1225) ==1077== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== by 0x5A88F6B: qsort_r (in /usr/lib64/libc-2.17.so) ==1077== by 0x40E59F: assoc_list (array.c:1356) ==1077== by 0x44A666: r_interpret (interpret.h:900) ==1077== ==1077== 512 bytes in 2 blocks are possibly lost in loss record 106 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x426FB2: emalloc_real (awk.h:1820) ==1077== by 0x428E2B: leaf_lookup (cint_array.c:1050) ==1077== by 0x4285DB: tree_lookup (cint_array.c:782) ==1077== by 0x42743C: cint_lookup (cint_array.c:244) ==1077== by 0x40BE1A: null_lookup (array.c:150) ==1077== by 0x4533CD: set_element (field.c:935) ==1077== by 0x452D73: sc_parse_field (field.c:722) ==1077== by 0x4538B5: do_split (field.c:1036) ==1077== by 0x44A8E5: r_interpret (interpret.h:940) ==1077== by 0x40E17B: sort_user_func (array.c:1225) ==1077== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== ==1077== 512 bytes in 2 blocks are possibly lost in loss record 107 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x426FB2: emalloc_real (awk.h:1820) ==1077== by 0x428467: tree_lookup (cint_array.c:757) ==1077== by 0x42743C: cint_lookup (cint_array.c:244) ==1077== by 0x40BE1A: null_lookup (array.c:150) ==1077== by 0x4533CD: set_element (field.c:935) ==1077== by 0x452D73: sc_parse_field (field.c:722) ==1077== by 0x4538B5: do_split (field.c:1036) ==1077== by 0x44A8E5: r_interpret (interpret.h:940) ==1077== by 0x40E17B: sort_user_func (array.c:1225) ==1077== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== by 0x5A88F6B: qsort_r (in /usr/lib64/libc-2.17.so) ==1077== ==1077== 6,701 bytes in 23 blocks are possibly lost in loss record 126 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x40BAB3: emalloc_real (awk.h:1820) ==1077== by 0x40C6A9: concat_exp (array.c:420) ==1077== by 0x44A259: r_interpret (interpret.h:817) ==1077== by 0x462EA5: main (main.c:518) ==1077== ==1077== 8,800 bytes in 1 blocks are possibly lost in loss record 135 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x469124: emalloc_real (awk.h:1820) ==1077== by 0x46AFB9: more_blocks (node.c:1003) ==1077== by 0x451AB9: rebuild_record (field.c:201) ==1077== by 0x4530F4: get_field (field.c:844) ==1077== by 0x446A42: r_get_field (eval.c:1202) ==1077== by 0x448A8F: r_interpret (interpret.h:352) ==1077== by 0x462EA5: main (main.c:518) ==1077== ==1077== 8,800 bytes in 1 blocks are possibly lost in loss record 136 of 137 ==1077== at 0x4C27BE3: malloc (vg_replace_malloc.c:299) ==1077== by 0x469124: emalloc_real (awk.h:1820) ==1077== by 0x46AFB9: more_blocks (node.c:1003) ==1077== by 0x469C73: r_make_number (node.c:339) ==1077== by 0x4533AB: set_element (field.c:934) ==1077== by 0x452D73: sc_parse_field (field.c:722) ==1077== by 0x4538B5: do_split (field.c:1036) ==1077== by 0x44A8E5: r_interpret (interpret.h:940) ==1077== by 0x40E17B: sort_user_func (array.c:1225) ==1077== by 0x5A88B34: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== by 0x5A88A11: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== by 0x5A88A11: msort_with_tmp.part.0 (in /usr/lib64/libc-2.17.so) ==1077== ==1077== LEAK SUMMARY: ==1077== definitely lost: 0 bytes in 0 blocks ==1077== indirectly lost: 0 bytes in 0 blocks ==1077== possibly lost: 26,149 bytes in 51 blocks ==1077== still reachable: 149,111 bytes in 679 blocks ==1077== suppressed: 0 bytes in 0 blocks ==1077== Reachable blocks (those to which a pointer was found) are not shown. ==1077== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1077== ==1077== For counts of detected and suppressed errors, rerun with: -v ==1077== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0)