diff --git a/src/debug.c b/src/debug.c index a85605e20..a57b1fde9 100644 --- a/src/debug.c +++ b/src/debug.c @@ -713,7 +713,10 @@ NULL if (getPositiveLongFromObjectOrReply(c, c->argv[2], &keys, NULL) != C_OK) return; - dictExpand(c->db->dict,keys); + if (dictTryExpand(c->db->dict, keys) != DICT_OK) { + addReplyError(c, "OOM in dictTryExpand"); + return; + } long valsize = 0; if ( c->argc == 5 && getPositiveLongFromObjectOrReply(c, c->argv[4], &valsize, NULL) != C_OK ) return;