Unverified Commit bfcaa7db authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix minor memory leak in rewriteSetObject (#13086)

It seems to be a leak caused by code refactoring in #11290.
it's a small leak, that only happens if there's an IO error.
parent 4a265554
......@@ -1854,6 +1854,7 @@ int rewriteSetObject(rio *r, robj *key, robj *o) {
!rioWriteBulkString(r,"SADD",4) ||
!rioWriteBulkObject(r,key))
{
setTypeReleaseIterator(si);
return 0;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment