Detect (instead of crash) FREE_IT UDFs that return pointer not allocated by ib_util_malloc [CORE1937] #2374
Submitted by: @asfernandes
When a UDF declared as FREE_IT returns a pointer not allocated by the same runtime of the server, a crash occurs when the server calls free(pointer).
Solution is creation of ib_util_free that verifies if the passed pointer was allocated by ib_util_malloc. When it wasn't, an exception is thrown and the pointer is not freed.
The text was updated successfully, but these errors were encountered: