BUG: free'ing memory allocated with `new`