commit | f85dfa654f26d02a3ef3d955ed41bd98b710bd23 | [log] [tgz] |
---|---|---|
author | Zhiqiang Liu <lzhq28@mail.ust.edu.cn> | Mon Jul 27 17:46:01 2020 +0800 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Aug 10 10:53:08 2020 -0700 |
tree | 314abee39ed340dc37f99e68f4ca8932d62f3179 | |
parent | ab68ed469763d8f1e8caa63988015b36526edb61 [diff] |
libusb: fix a memory leak in sunos_new_string_list func In sunos_new_string_list func, if alloc list->string fails, we will return NULL without free list, which has alread been allocated successfully. Fixes: 17348731b4 ('Solaris backend depends on Solaris private symbols') Closes #756 Signed-off-by: Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)