]> sigrok.org Git - libsigrok.git/commit
C++ binding: Fixup memory leak in input module receive() calls
authorGerhard Sittig <redacted>
Fri, 9 Jun 2017 21:13:35 +0000 (23:13 +0200)
committerGerhard Sittig <redacted>
Fri, 9 Jun 2017 21:21:03 +0000 (23:21 +0200)
commite3e1f20c7f5071fb9d1912619a899e542c5d9c71
tree1d2f34c02917f44d13e652fba015ec553bb56441
parent2355d2291925ace0bd9c85b21f2ce7e2c6606c7f
C++ binding: Fixup memory leak in input module receive() calls

The Input::send() method allocated glib strings and copied input data,
but only released the glib string container and leaked the actual string
content. This led to leaks in the size of the verbatim input file, which
is especially wasteful for uncompressed textual representations.

This fixes bug #976.
bindings/cxx/classes.cpp