]> sigrok.org Git - libsigrokdecode.git/commit
srd_inst_option_set(): Fix multiple memory leaks.
authorUwe Hermann <redacted>
Sat, 23 Nov 2019 15:16:35 +0000 (16:16 +0100)
committerUwe Hermann <redacted>
Sat, 23 Nov 2019 16:08:15 +0000 (17:08 +0100)
commit144a09700d242ceac48a739f9fcdb3649f4c72b8
tree092a8dc2ec9b1087a7cd82ca30609f8714cd3f7a
parentb62ca656bcead79c54b14b0c83b0fd89ad76fb0c
srd_inst_option_set(): Fix multiple memory leaks.

These were reported when compiling with "-fsanitize=address" and running
"PYTHONMALLOC=malloc make check":

  =================================================================
  ==42879==ERROR: LeakSanitizer: detected memory leaks

  Direct leak of 317 byte(s) in 6 object(s) allocated from:
      #0 0x7f08e4809538 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
      #1 0x7f08e3f37622 in PyUnicode_New ../Objects/unicodeobject.c:1365

  Direct leak of 28 byte(s) in 1 object(s) allocated from:
      #0 0x7f08e4809538 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
      #1 0x7f08e3f7e1a5 in _PyLong_New ../Objects/longobject.c:275

  Direct leak of 24 byte(s) in 1 object(s) allocated from:
      #0 0x7f08e4809538 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
      #1 0x7f08e3f91521 in PyFloat_FromDouble ../Objects/floatobject.c:122

  SUMMARY: AddressSanitizer: 369 byte(s) leaked in 8 allocation(s).
   session
instance.c