diff --git a/qw/source/cl_slist.c b/qw/source/cl_slist.c index e5e6bc336..13cffed0b 100644 --- a/qw/source/cl_slist.c +++ b/qw/source/cl_slist.c @@ -698,7 +698,7 @@ SL_CheckStatus (const char *cs_from, const char *cs_data) if (strcmp (cs_from, temp->server) == 0) { int i; - char *data = Hunk_TempAlloc (strlen (cs_data) + 1); + char *data = strdup (cs_data); strcpy (data, cs_data); for (i = 0; i < strlen(data); i++) if (data[i] == '\n') { @@ -717,6 +717,7 @@ SL_CheckStatus (const char *cs_from, const char *cs_data) temp->desc = realloc(temp->desc, strlen(data) + 1); strcpy(temp->desc, data); } + free (data); return (1); } }