fix memory leak when fetching masterserver rules

strdup returns a malloc´d string!
This commit is contained in:
alufolie91 committed 2026-02-22 13:33:10 +01:00
1 parent 454e34c117
commit b70b2bef71
1 file changed
+1
+1
View File
@@ -262,6 +262,7 @@ Finish_registration (void)
{
CONS_Printf("\n");
CONS_Alert(CONS_NOTICE, "%s\n", rules);
free(rules);
}
if (registered)