Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete allocated array properly (iovisor#2285)
In bcc_btf.cc, new_btf_sec is allocated with something like new_btf_sec = new uint8_t[tmp_sec_size] Since the allocation is an array, the deletion should be delete[] new_btf_sec instead of delete new_btf_sec This patch fixed the problem. Signed-off-by: Yonghong Song <[email protected]>
- Loading branch information