fix a bogus leak in info strings

This commit is contained in:
Bill Currie 2001-11-04 08:18:54 +00:00
parent dcd9b0040e
commit b0e9bd3ddc

View file

@ -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))))