[xml] Fixed memleak in xmlIO.c

Date view Thread view Subject view Author view

From: Marc Sanfacon (sanm@copernic.com)
Date: Wed Nov 15 2000 - 13:33:19 EST


Hi there,
        I fixed a leak in xmlIO.c. Here is the fix, xmlIO.c, line 1304:

        nbchars = xmlCharEncInFunc(in->encoder, in->buffer, in->raw);
        if (nbchars < 0) {
            xmlGenericError(xmlGenericErrorContext,
                    "xmlParserInputBufferGrow: encoder error\n");
            xmlFree(buffer);
            return(-1);
        }

Thank you.

---------------------------------------------------------------------
 "Better the pride that resides, in a citizen of the world.
  Than the pride that divides, when a colorful rag is
  unfurled." Neil Peart
---------------------------------------------------------------------
Marc Sanfacon, Software developer Copernic.com
e-mail: msanfacon@copernic.com R&D Group
Tel : (418) 527-0528 ext 1212


----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 13:43:58 EST