Partial fix to 7202. free (XPT_DELETE()) a pointer that was previously just set to NULL and leaked.

Thanks to David Gardiner <david.gardiner@unisa.edu.au> for the patch, and to bruce to pointing me to it.
This commit is contained in:
mccabe%netscape.com 1999-06-04 21:33:38 +00:00
Родитель 28b57410f7
Коммит 70e0887424
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -481,7 +481,7 @@ DoInterfaceDescriptor(XPTCursor *outer, XPTInterfaceDescriptor **idp)
if (!XPT_Do32(outer, &cursor->offset))
goto error;
if (mode == XPT_DECODE && !cursor->offset) {
*idp = NULL;
XPT_DELETE(*idp);
return PR_TRUE;
}
if(!XPT_Do16(cursor, &id->parent_interface) ||