Opened 11 years ago

Closed 11 years ago

#10226 closed bug (fixed)

Fixed resource leak and possible strings without null-termiator

Reported by: Ezodev Owned by: bonefish
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: gci2013 Cc:
Blocked By: Blocking:
Platform: All

Description

Found in coverity, CIDs: 605891, 990975

Attachments (2)

Change History (6)

comment:1 by Ezodev, 11 years ago

patch: 01

comment:2 by anevilyak, 11 years ago

Component: - GeneralSystem/Kernel
Owner: changed from nobody to bonefish
Status: newassigned

The resource leak could be fixed more simply by just moving the first call to unload_driver_settings() down two lines (just before the closing curly brace for if (settings != NULL)). That would render both the boolean flag and consequent additional calls to unload_driver_settings() entirely unnecessary.

comment:3 by Ezodev, 11 years ago

done, I hasn't checked that settings were not used after this if.

comment:4 by bonefish, 11 years ago

Resolution: fixed
Status: assignedclosed

Thanks, applied in hrev46410.

Note: See TracTickets for help on using tickets.