Fix double-free in presence functions because of invalid @tobefreed directive. The fix is already in master.