Ticket #15 (closed defect: wontfix)

Opened 2 years ago

Last modified 17 months ago

Small memory leak in usb_parse_configuration

Reported by: quozl Owned by:
Component: libusb-0.1 (unmaintained) Keywords: memory leak
Cc: Blocked By:
Blocks:

Description

Memory allocated as 'extra' at line 367 of descriptors.c is never freed.

Needs a line in usb_destroy_configuration() to free it. patch attached.

Note, (struct)interface->extra IS free, but (struct)usb_config_descriptor->extra is not.

This turns into megs a day of leaked memory on a pcscd using box of ours.
Not major, but for us anyway, worth fixing.

Attachments

libusb.diff (278 bytes) - added by quozl 2 years ago.

Change History

Changed 2 years ago by quozl

comment:1 Changed 2 years ago by dsd

  • Component changed from libusb to libusb-0.1 (unmaintained)

comment:2 Changed 17 months ago by stuge

  • Status changed from new to closed
  • Resolution set to wontfix

Closing this since the code is unmaintained. The patch remains attached here.

Note: See TracTickets for help on using tickets.