fix memory leak when fetching masterserver rules
strdup returns a malloc´d string!
This commit is contained in:
1 parent
454e34c117
commit
b70b2bef71
1 file changed
+1
@@ -262,6 +262,7 @@ Finish_registration (void)
|
||||
{
|
||||
CONS_Printf("\n");
|
||||
CONS_Alert(CONS_NOTICE, "%s\n", rules);
|
||||
free(rules);
|
||||
}
|
||||
|
||||
if (registered)
|
||||
|
||||
Reference in new issue
Block a user