mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-20 20:05:43 +00:00
refactor(memory): remove nullptr check before std::free
This commit is contained in:
parent
41d4b5781d
commit
0787733485
@ -56,11 +56,7 @@ char* memory::duplicate_string(const std::string& string) {
|
||||
return new_string;
|
||||
}
|
||||
|
||||
void memory::free(void* data) {
|
||||
if (data) {
|
||||
std::free(data);
|
||||
}
|
||||
}
|
||||
void memory::free(void* data) { std::free(data); }
|
||||
|
||||
void memory::free(const void* data) { free(const_cast<void*>(data)); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user