Skip to content

Commit

Permalink
[CM] Fix coverity resource leak issue
Browse files Browse the repository at this point in the history
Delelte perror in destructor which is newed in constructor
  • Loading branch information
XuanJessica authored and intel-mediadev committed Nov 17, 2023
1 parent 433068b commit 4e2a85f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media_driver/agnostic/common/cm/cm_visa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ ISAfile& ISAfile::operator= (const ISAfile& other) {

ISAfile::~ISAfile() {
delete header;
delete[] error;
for (KernelBody *kb : kernel_data)
delete kb;
for (FunctionBody *f : function_data)
Expand Down

0 comments on commit 4e2a85f

Please sign in to comment.