From f71abec6805236cc97891f0fba506c009d52cbf9 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 15 Jun 2002 22:20:43 +0000 Subject: fix a braindead typo that caused us to leak strings in certain 2002-06-14 Chris Toshok * libversit/vobject.c (unUseStr): fix a braindead typo that caused us to leak strings in certain circumstances (when the string being freed was second in the list, the head of the list would get lost.) svn path=/trunk/; revision=17194 --- libversit/vobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libversit/vobject.c b/libversit/vobject.c index dd0d1131ed..fb78253700 100644 --- a/libversit/vobject.c +++ b/libversit/vobject.c @@ -662,7 +662,7 @@ DLLEXPORT(void) unUseStr(const char *s) if (stricmp(t->s,s) == 0) { t->refCnt--; if (t->refCnt == 0) { - if (p == strTbl[h]) { + if (t == strTbl[h]) { strTbl[h] = t->next; } else { -- cgit v1.2.3