diff --git a/source/blender/editors/space_node/node_geometry_attribute_search.cc b/source/blender/editors/space_node/node_geometry_attribute_search.cc index 04b08a2474e..05487b0780d 100644 --- a/source/blender/editors/space_node/node_geometry_attribute_search.cc +++ b/source/blender/editors/space_node/node_geometry_attribute_search.cc @@ -251,7 +251,7 @@ void node_geometry_add_attribute_search_button(const bContext & /*C*/, ""); const bNodeSocket &socket = *static_cast(socket_ptr.data); - AttributeSearchData *data = MEM_new(__func__); + AttributeSearchData *data = MEM_cnew(__func__); data->node_id = node.identifier; STRNCPY(data->socket_identifier, socket.identifier);