fix idict_free memory leak