mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a bogus leak in info strings
This commit is contained in:
parent
dcd9b0040e
commit
b0e9bd3ddc
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ Info_SetValueForStarKey (info_t *info, const char *key, const char *value, int f
|
|||
if (k) {
|
||||
if (strequal (k->value, value))
|
||||
return;
|
||||
info->cursize -= strlen (k->value) + 1;
|
||||
free ((char*)k->value);
|
||||
} else {
|
||||
if (!(k = malloc (sizeof (info_key_t))))
|
||||
|
|
Loading…
Reference in a new issue