From f9dc8790332963059105d9d51143e44b3bae0b8a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 23 Apr 2025 08:41:56 -0400 Subject: [PATCH] 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. --- src/REAXFF/reaxff_tool_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/REAXFF/reaxff_tool_box.cpp b/src/REAXFF/reaxff_tool_box.cpp index aa6f831e95..e39a6c6654 100644 --- a/src/REAXFF/reaxff_tool_box.cpp +++ b/src/REAXFF/reaxff_tool_box.cpp @@ -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