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
Note: See
TracTickets for help on using
tickets.
fixed in r13732