Modify

Opened 9 years ago

Closed 9 years ago

#4236 closed defect (fixed)

Memory leak in UCI function uci_list_config_files

Reported by: mverde Owned by: developers
Priority: high Milestone:
Component: packages Version:
Keywords: Cc:

Description

There appears to be a memory leak in the uci_list_config_files function in file.c in the UCI source code. glob is invoked on globbuf, but globfree is never called on globbuf. Since this function is called by the UCI shared library function uci_list_configs, any code that links to the library will inherit this leak. Inserting the following line before uci_list_config_files returns eliminates this leak:

globfree(&globbuf);

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by nbd

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

fixed in r13732

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.