Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

==38070==ERROR: LeakSanitizer: detected memory leak #19

Closed
conotto opened this issue Jan 28, 2022 · 0 comments · Fixed by #20
Closed

==38070==ERROR: LeakSanitizer: detected memory leak #19

conotto opened this issue Jan 28, 2022 · 0 comments · Fixed by #20

Comments

@conotto
Copy link

conotto commented Jan 28, 2022

Hi,
It seems there was a memory leak introduced in the latest code, i am getting warnings below.
0.1 Tag works fine.

Thanks alot and keep up the good work!

./test

N_FFT = 128
FFT work area = 1568
F[0] = -100.0 dB
F[1] = -0.000 dB

=================================================================
==38070==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1568 byte(s) in 1 object(s) allocated from:
#0 0x7fe96fa74e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x55c6ac93295c in test4 /home/Data/ft8_lib/test.c:129
#2 0x55c6ac9322ea in main /home/Data/ft8_lib/test.c:156

SUMMARY: AddressSanitizer: 1568 byte(s) leaked in 1 allocation(s).

./decode_ft8 tests/191111_110115.wav

Sample rate 12000 Hz, 180000 samples, 15.000 seconds
Block size = 1920
Subblock size = 960
N_FFT = 3840
Max magnitude: -15.6 dB
Decoded 0 messages

=================================================================
==38101==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 357120 byte(s) in 1 object(s) allocated from:
#0 0x7f4f33da3e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x56072fb16cfb in waterfall_init /home/Data/ft8_lib/decode_ft8.c:72
#2 0x56072fb16cfb in monitor_init /home/Data/ft8_lib/decode_ft8.c:146
#3 0x200002edf ()

Direct leak of 38688 byte(s) in 1 object(s) allocated from:
#0 0x7f4f33da3e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x56072fb16ad5 in monitor_init /home/Data/ft8_lib/decode_ft8.c:141
#2 0x200002edf ()

Direct leak of 15360 byte(s) in 1 object(s) allocated from:
#0 0x7f4f33da3e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x56072fb16986 in monitor_init /home/Data/ft8_lib/decode_ft8.c:131
#2 0x200002edf ()

Direct leak of 15360 byte(s) in 1 object(s) allocated from:
#0 0x7f4f33da3e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x56072fb168fa in monitor_init /home/Data/ft8_lib/decode_ft8.c:122
#2 0x200002edf ()

SUMMARY: AddressSanitizer: 426528 byte(s) leaked in 4 allocation(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant