Forgot to free() my malloc'd character array
modified: src/nms.c
This commit is contained in:
parent
385cacab05
commit
9b5471838a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user