Revert 578e3551 -- double free in second invocation of dict_free().