REVERTME! introduce memory leaks to prevent segfaults