This is an archive of the discontinued LLVM Phabricator instance.

Free CurrentUnitData in dtor
AbandonedPublic

Authored by yingcong-wu on Feb 28 2023, 11:41 PM.

Details

Reviewers
vitalybuka
Summary

In Fuzzer, CurrentUnitData is allocated but never get free, so free it in the destructor.

Diff Detail

Event Timeline

yingcong-wu created this revision.Feb 28 2023, 11:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 11:41 PM
Herald added a subscriber: Enna1. · View Herald Transcript
yingcong-wu requested review of this revision.Feb 28 2023, 11:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 11:41 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka requested changes to this revision.Mar 7 2023, 10:28 PM

Fuzzer is never deleted. I added ~Fuzzer() = delete; to be sure

compiler-rt/lib/fuzzer/FuzzerLoop.cpp
162–164

patch is wrong, code like this is not in the tree

This revision now requires changes to proceed.Mar 7 2023, 10:28 PM
yingcong-wu abandoned this revision.Mar 7 2023, 10:52 PM

Fuzzer is never deleted. I added ~Fuzzer() = delete; to be sure

Okay. I will close this revision.