mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 08:51:59 +00:00
plug a memory leak
This commit is contained in:
parent
be8df8bdaa
commit
7adaf456a1
1 changed files with 4 additions and 1 deletions
|
@ -456,9 +456,12 @@ void
|
|||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
dstring_t *data = dstring_newstr ();
|
||||
static dstring_t *data;
|
||||
int fd;
|
||||
|
||||
if (!data)
|
||||
data = dstring_newstr ();
|
||||
|
||||
va_start (args, fmt);
|
||||
dvsprintf (data, fmt, args);
|
||||
va_end (args);
|
||||
|
|
Loading…
Reference in a new issue