hopefully fix unwanted free() calls