1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-31 06:50:06 +03:00

fixed #101894 if doc == NULL xmlFreeDoc should not be called. Daniel

* doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc
  should not be called.
Daniel
This commit is contained in:
Daniel Veillard 2003-01-06 11:06:26 +00:00
parent 0aaaacdb43
commit e0ed10cb0f
5 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 6 12:05:12 CET 2003 Daniel Veillard <daniel@veillard.com>
* doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc
should not be called.
Mon Jan 6 11:59:09 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxml-2.0.pc.in: applied the patch to fix #101894

View File

@ -24,7 +24,6 @@ parseDoc(char *docname, char *keyword) {
if (doc == NULL ) {
fprintf(stderr,&quot;Document not parsed successfully. \n&quot;);
xmlFreeDoc(doc);
return (NULL);
}

View File

@ -9,7 +9,6 @@
<a name="checkparseerror"></a><img src="images/callouts/4.png" alt="4" border="0"> if (doc == NULL ) {
fprintf(stderr,&quot;Document not parsed successfully. \n&quot;);
xmlFreeDoc(doc);
return;
}

View File

@ -22,7 +22,6 @@ parseDoc(char *docname, char *keyword) {
if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
xmlFreeDoc(doc);
return (NULL);
}

View File

@ -145,7 +145,6 @@
<co id="checkparseerror" /> if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
xmlFreeDoc(doc);
return;
}