Fixed double free.
Reverted accidental commit.