Update master_server.c

Seems to me like a use after free (not tested...)