diff --git a/medredis.c b/medredis.c index ef1dcfb..51b6837 100644 --- a/medredis.c +++ b/medredis.c @@ -572,6 +572,7 @@ int medredis_fetch_records(med_callid_t *callid, goto err; } free(cid); + cids[i] = NULL; } for (i = 0; i < 3; ++i) {