Forgot to free() my malloc'd character array

modified:   src/nms.c
This commit is contained in:
Brian Barto 2016-04-18 14:38:02 -04:00
parent 385cacab05
commit 9b5471838a

View File

@ -71,6 +71,8 @@ void nmsprintf(const char *format, ...) {
display = realloc(display, strlen(display) + strlen(nmsprintBuffer) + 1); display = realloc(display, strlen(display) + strlen(nmsprintBuffer) + 1);
strcat(display, nmsprintBuffer); strcat(display, nmsprintBuffer);
} }
free(nmsprintBuffer);
} }