unit test memory leak: conf
==3509== Memcheck, a memory error detector
==3509== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==3509== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==3509== Command: ./conf
==3509==
1..19
ok 1 - config_new()
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x112C01: cf_print_error (conf.c:77)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x653D6E4: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Use of uninitialised value of size 8
==3509== at 0x653918B: _itoa_word (_itoa.c:179)
==3509== by 0x653DC21: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x6539195: _itoa_word (_itoa.c:179)
==3509== by 0x653DC21: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x653DC92: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x653D7BE: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
==3509== Conditional jump or move depends on uninitialised value(s)
==3509== at 0x653D84E: vfprintf (vfprintf.c:1641)
==3509== by 0x6568828: vsnprintf (vsnprintf.c:119)
==3509== by 0x11EE5D: log_msg_text (log.c:380)
==3509== by 0x11ECDF: log_msg (log.c:398)
==3509== by 0x112C70: cf_print_error (conf.c:87)
==3509== by 0x112E3A: cf_warning (conf.c:115)
==3509== by 0x13A63F: cf_parse (cf-parse.y:616)
==3509== by 0x1131A7: conf_strparser (conf.c:546)
==3509== by 0x1130AC: conf_parse_str (conf.c:620)
==3509== by 0x1101C6: main (conf.c:37)
==3509==
ok 2 - parsing configuration file rc:/sample_conf
ok 3 - server version loaded ok
ok 4 - configured interfaces exist
ok 5 - interface0 address check
ok 6 - interface1 address check
ok 7 - TSIG key algorithm check
ok 8 - TSIG key secret check
ok 9 - log facilites count check
ok 10 - log facilities not empty
ok 11 - log0 is syslog
ok 12 - syslog first rule is ANY
ok 13 - syslog mask is equal
ok 14 - syslog has more than 1 rule
ok 15 - syslog next rule is for zone
ok 16 - rule for zone is: info level
ok 17 - log has next facility
ok 18 - log file matches
ok 19 - TSIG key dname check
# All 19 tests successful or skipped
==3509==
==3509== HEAP SUMMARY:
==3509== in use at exit: 331 bytes in 6 blocks
==3509== total heap usage: 1,310 allocs, 1,304 frees, 120,596 bytes allocated
==3509==
==3509== LEAK SUMMARY:
==3509== definitely lost: 0 bytes in 0 blocks
==3509== indirectly lost: 0 bytes in 0 blocks
==3509== possibly lost: 0 bytes in 0 blocks
==3509== still reachable: 331 bytes in 6 blocks
==3509== suppressed: 0 bytes in 0 blocks
==3509== Rerun with --leak-check=full to see details of leaked memory
==3509==
==3509== For counts of detected and suppressed errors, rerun with: -v
==3509== Use --track-origins=yes to see where uninitialised values come from
==3509== ERROR SUMMARY: 9 errors from 7 contexts (suppressed: 0 from 0)