One more free(nodenum)

This commit is contained in:
mazmazz 2018-12-22 20:35:12 -05:00
parent 5badc11159
commit 0f0e30924f

View file

@ -1730,6 +1730,7 @@ static void HU_DrawChat(void)
nodenum = (char*) malloc(3); nodenum = (char*) malloc(3);
strncpy(nodenum, w_chat+3, 3); strncpy(nodenum, w_chat+3, 3);
n = atoi((const char*) nodenum); // turn that into a number n = atoi((const char*) nodenum); // turn that into a number
free(nodenum);
// special cases: // special cases:
if ((n == 0) && !(w_chat[4] == '0')) if ((n == 0) && !(w_chat[4] == '0'))