]> sigrok.org Git - libsigrok.git/commit
backend.c: Fix memory leak in sr_init() error path
authorPeter Stuge <redacted>
Sat, 3 Nov 2012 07:27:48 +0000 (08:27 +0100)
committerPeter Stuge <redacted>
Wed, 5 Dec 2012 00:34:15 +0000 (01:34 +0100)
commit123d97b17715204c58b795b8e6cbecc55725e5d3
tree627d0efe778f0df905da8c1eab839c7b41cad459
parent1740429d7045385866caafb0d2cbe302e7c74604
backend.c: Fix memory leak in sr_init() error path

Commit 785b9ff290cbdb86e7d0b0280c33b43faf9c0518 added libusb init into
sr_init() which can generate an error. In this case, the already
allocated struct sr_context would have leaked.
backend.c