Fix memory leak

Former-commit-id: c5b9adf47e30658359071d458cfb16a094dc8e28
This commit is contained in:
John Sully 2021-12-22 18:41:50 -05:00
parent bfcea943ea
commit d22a9dd64a

View File

@ -2213,6 +2213,7 @@ void saveMasterStatusToStorage()
}
}
g_pserver->metadataDb->insert("repl-masters", 12, (void*)val, sdslen(val), true);
sdsfree(val);
}
/* Change the current instance replication ID with a new, random one.