afredis_dd_free function fixed