add comment to indicate that setting the pointer to null has no effect in sfree.

You need Memory::destroy() but that can't be applied to all use cases.
This commit is contained in:
Axel Kohlmeyer
2025-04-23 08:41:56 -04:00
parent b1159dc528
commit f9dc879033

View File

@ -101,6 +101,6 @@ void sfree(void *ptr)
if (ptr == nullptr) return;
free(ptr);
ptr = nullptr;
ptr = nullptr; // NOTE: this has no effect
}
} // namespace ReaxFF