valgrind ./advanced_config
==2346== Memcheck, a memory error detector
==2346== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==2346== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==2346== Command: ./advanced_config
==2346==
Playback Devices (24)
0: Playback/recording through the PulseAudio sound server
1: PulseAudio Sound Server
2: HDA Intel PCH, ALC665 Analog (Default Audio Device)
3: HDA Intel PCH, ALC665 Analog (Front speakers)
4: HDA Intel PCH, ALC665 Analog (2.1 Surround output to Front and Subwoofer speakers)
5: HDA Intel PCH, ALC665 Analog (4.0 Surround output to Front and Rear speakers)
6: HDA Intel PCH, ALC665 Analog (4.1 Surround output to Front, Rear and Subwoofer speakers)
7: HDA Intel PCH, ALC665 Analog (5.0 Surround output to Front, Center and Rear speakers)
8: HDA Intel PCH, ALC665 Analog (5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
9: HDA Intel PCH, ALC665 Analog (7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
10: HDA Intel PCH, ALC665 Digital (IEC958 (S/PDIF) Digital Audio Output)
11: HDA Intel PCH, HDMI 0 (HDMI Audio Output)
12: HDA Intel PCH, ALC665 Analog (Direct sample mixing device)
13: HDA Intel PCH, ALC665 Digital (Direct sample mixing device)
14: HDA Intel PCH, HDMI 0 (Direct sample mixing device)
15: HDA Intel PCH, ALC665 Analog (Direct sample snooping device)
16: HDA Intel PCH, ALC665 Digital (Direct sample snooping device)
17: HDA Intel PCH, HDMI 0 (Direct sample snooping device)
18: HDA Intel PCH, ALC665 Analog (Direct hardware device without any conversions)
19: HDA Intel PCH, ALC665 Digital (Direct hardware device without any conversions)
20: HDA Intel PCH, HDMI 0 (Direct hardware device without any conversions)
21: HDA Intel PCH, ALC665 Analog (Hardware device with all software conversions)
22: HDA Intel PCH, ALC665 Digital (Hardware device with all software conversions)
23: HDA Intel PCH, HDMI 0 (Hardware device with all software conversions)
Capture Devices (2)
0: Playback/recording through the PulseAudio sound server
1: PulseAudio Sound Server
Press Enter to quit...
Device stopped
==2346==
==2346== HEAP SUMMARY:
==2346== in use at exit: 138,058 bytes in 1,558 blocks
==2346== total heap usage: 136,898 allocs, 135,340 frees, 5,515,796 bytes allocated
==2346==
==2346== LEAK SUMMARY:
==2346== definitely lost: 13,312 bytes in 2 blocks
==2346== indirectly lost: 0 bytes in 0 blocks
==2346== possibly lost: 43,506 bytes in 1,324 blocks
==2346== still reachable: 81,240 bytes in 232 blocks
==2346== suppressed: 0 bytes in 0 blocks
==2346== Rerun with --leak-check=full to see details of leaked memory
==2346==
==2346== For counts of detected and suppressed errors, rerun with: -v
==2346== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
razor@m:~/Documents/mini_al/examples$ valgrind --leak-check=full ./advanced_config
==2367== Memcheck, a memory error detector
==2367== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==2367== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==2367== Command: ./advanced_config
==2367==
Playback Devices (24)
0: Playback/recording through the PulseAudio sound server
1: PulseAudio Sound Server
2: HDA Intel PCH, ALC665 Analog (Default Audio Device)
3: HDA Intel PCH, ALC665 Analog (Front speakers)
4: HDA Intel PCH, ALC665 Analog (2.1 Surround output to Front and Subwoofer speakers)
5: HDA Intel PCH, ALC665 Analog (4.0 Surround output to Front and Rear speakers)
6: HDA Intel PCH, ALC665 Analog (4.1 Surround output to Front, Rear and Subwoofer speakers)
7: HDA Intel PCH, ALC665 Analog (5.0 Surround output to Front, Center and Rear speakers)
8: HDA Intel PCH, ALC665 Analog (5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
9: HDA Intel PCH, ALC665 Analog (7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
10: HDA Intel PCH, ALC665 Digital (IEC958 (S/PDIF) Digital Audio Output)
11: HDA Intel PCH, HDMI 0 (HDMI Audio Output)
12: HDA Intel PCH, ALC665 Analog (Direct sample mixing device)
13: HDA Intel PCH, ALC665 Digital (Direct sample mixing device)
14: HDA Intel PCH, HDMI 0 (Direct sample mixing device)
15: HDA Intel PCH, ALC665 Analog (Direct sample snooping device)
16: HDA Intel PCH, ALC665 Digital (Direct sample snooping device)
17: HDA Intel PCH, HDMI 0 (Direct sample snooping device)
18: HDA Intel PCH, ALC665 Analog (Direct hardware device without any conversions)
19: HDA Intel PCH, ALC665 Digital (Direct hardware device without any conversions)
20: HDA Intel PCH, HDMI 0 (Direct hardware device without any conversions)
21: HDA Intel PCH, ALC665 Analog (Hardware device with all software conversions)
22: HDA Intel PCH, ALC665 Digital (Hardware device with all software conversions)
23: HDA Intel PCH, HDMI 0 (Hardware device with all software conversions)
Capture Devices (2)
0: Playback/recording through the PulseAudio sound server
1: PulseAudio Sound Server
Press Enter to quit...
Device stopped
==2367==
==2367== HEAP SUMMARY:
==2367== in use at exit: 139,002 bytes in 1,568 blocks
==2367== total heap usage: 136,976 allocs, 135,408 frees, 5,529,088 bytes allocated
==2367==
==2367== 3 bytes in 1 blocks are possibly lost in loss record 1 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5569A: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56874: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 3 bytes in 1 blocks are possibly lost in loss record 2 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A55565: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x6236B75: ???
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 4 bytes in 2 blocks are possibly lost in loss record 4 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x50C9489: strdup (strdup.c:42)
==2367== by 0x5A53370: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A567EA: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A60AAB: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5774B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5852E: snd_determine_driver (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A55816: snd_config_hook_load_for_all_cards (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 4 bytes in 2 blocks are possibly lost in loss record 5 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x50C9489: strdup (strdup.c:42)
==2367== by 0x5A53370: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53524: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A567EA: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A60AAB: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5774B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5852E: snd_determine_driver (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 12 bytes in 2 blocks are possibly lost in loss record 7 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A55565: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x6236B75: ???
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56E05: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 12 bytes in 2 blocks are possibly lost in loss record 8 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5569A: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56874: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 12 bytes in 6 blocks are possibly lost in loss record 9 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x50C9489: strdup (strdup.c:42)
==2367== by 0x5A53370: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53524: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53524: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A567EA: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A60AAB: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 14 bytes in 2 blocks are possibly lost in loss record 10 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53524: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53524: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52F61: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A567EA: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 14 bytes in 2 blocks are possibly lost in loss record 11 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A50C96: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A50F5C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A51109: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52FF3: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A567EA: snd_config_update_r (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56D14: snd_config_update (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A60AAB: snd_ctl_open (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5774B: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5852E: snd_determine_driver (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 15 bytes in 3 blocks are possibly lost in loss record 12 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52DDE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A53224: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A55565: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x6236B75: ???
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56E05: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56F00: snd_config_searchva_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367== 16 bytes in 2 blocks are possibly lost in loss record 25 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x5A509E4: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5101D: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A52DDE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A535F2: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A5383C: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A55565: snd_config_hook_load (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x6236B75: ???
==2367== by 0x5A561B8: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56E05: snd_config_searcha_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A56F00: snd_config_searchva_hooks (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367== by 0x5A57015: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0)
==2367==
==2367==
==2367== 12,288 bytes in 1 blocks are definitely lost in loss record 204 of 205
==2367== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2367== by 0x407118: main (advanced_config.c:76)
==2367==