Describe the bug

redis module RM_GetCommandKeysWithFlags should always free keys result

Comment From: sundb

do you mean there is a memory leak?

Comment From: brevin-yoke

yes, When the keys returned by cmd exceed the MAX_KEYS_BUFFER, getKeysResult.keys will be call zmalloc, but there will be not call free

Comment From: sundb

@brevin-yoke thx, feel free to make a PR to fix it and also create a test for it.

Comment From: YangboLong

@brevin-yoke It's been two weeks since this issue was created. If you haven't started, do you mind if I work on it?