Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9867 closed bug (fixed)

[Packageinstaller] PackageItem.cpp: use delete[] instead of delete

Reported by: mt Owned by: sil2100
Priority: normal Milestone: R1
Component: Applications/PackageInstaller Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

In PackageItem::ParseAttribute(), use delete[] for deleting *attrData.

Attachments (2)

0003-PackageItem-ParseAttribute-use-delete-for-deleing-at.patch (860 bytes ) - added by mt 6 years ago.
Patch
report-9QlBqW.html (131.1 KB ) - added by mt 6 years ago.
Report by Clang Static Analyzer

Download all attachments as: .zip

Change History (5)

comment:1 by mt, 6 years ago

Has a Patch: set

by mt, 6 years ago

Attachment: report-9QlBqW.html added

Report by Clang Static Analyzer

comment:2 by zooey, 6 years ago

Resolution: fixed
Status: newclosed

Fix applied in hrev45858 - thanks!

comment:3 by sil2100, 6 years ago

Thanks for the fix! It's been a while that the code was touched, so it's most likely that there are some outdated/broken parts. +1

Note: See TracTickets for help on using tickets.