Commit 95f5088f authored by Albert Astals Cid's avatar Albert Astals Cid

gfree: No need to check for p != nullptr, std::free already does that

parent 15c89ce2
......@@ -55,11 +55,9 @@ inline void *gmalloc_checkoverflow(size_t size) {
return gmalloc(size, true);
/// Same as free, but checks for and ignores NULL pointers.
/// Same as free
inline void gfree(void *p) {
if (p) {
/// Same as realloc, but prints error message and exits if realloc() returns NULL.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment