Skip to content

Commit

Permalink
svf_jtag: fix -Wmismatched-new-delete delete -> delete[]
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Aug 3, 2023
1 parent 6ef87c5 commit 4c5f6f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/svf_jtag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void SVF_jtag::parse_XYR(vector<string> const &vstr, svf_XYR &t)
for (unsigned int b = 0; b < byte_len; b++) {
write_buffer[b] &= smaskbuff[b];
}
delete smaskbuff;
delete[] smaskbuff;
}
unsigned char *read_buffer = NULL;
if (!t.tdo.empty()) {
Expand All @@ -174,11 +174,11 @@ void SVF_jtag::parse_XYR(vector<string> const &vstr, svf_XYR &t)
throw exception();
}
}
delete tdobuf;
delete maskbuf;
delete[] tdobuf;
delete[] maskbuf;
}
delete write_buffer;
delete read_buffer;
delete[] write_buffer;
delete[] read_buffer;
}
}

Expand Down

0 comments on commit 4c5f6f3

Please sign in to comment.