mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 01:21:17 +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 (k) {
|
||||||
if (strequal (k->value, value))
|
if (strequal (k->value, value))
|
||||||
return;
|
return;
|
||||||
|
info->cursize -= strlen (k->value) + 1;
|
||||||
free ((char*)k->value);
|
free ((char*)k->value);
|
||||||
} else {
|
} else {
|
||||||
if (!(k = malloc (sizeof (info_key_t))))
|
if (!(k = malloc (sizeof (info_key_t))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue