equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 56 forks source link

Deprecate `x_memory.c` #1138

Open mferrera opened 6 months ago

mferrera commented 6 months ago

In general the places in which the functions within it are used could be done with on the stack, no memory allocation, with a few exceptions. And those exceptions should handle freeing in the same place.