From e0ed10cb0f7244f781f84ecf2b063d1a7deb2b63 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 6 Jan 2003 11:06:26 +0000 Subject: fixed #101894 if doc == NULL xmlFreeDoc should not be called. Daniel * doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc should not be called. Daniel --- doc/tutorial/apc.html | 1 - doc/tutorial/ar01s03.html | 1 - doc/tutorial/includeaddkeyword.c | 1 - doc/tutorial/xmltutorial.xml | 1 - 4 files changed, 4 deletions(-) (limited to 'doc/tutorial') diff --git a/doc/tutorial/apc.html b/doc/tutorial/apc.html index 667e9a9f..40468b24 100644 --- a/doc/tutorial/apc.html +++ b/doc/tutorial/apc.html @@ -24,7 +24,6 @@ parseDoc(char *docname, char *keyword) { if (doc == NULL ) { fprintf(stderr,"Document not parsed successfully. \n"); - xmlFreeDoc(doc); return (NULL); } diff --git a/doc/tutorial/ar01s03.html b/doc/tutorial/ar01s03.html index 9451175a..f5c831df 100644 --- a/doc/tutorial/ar01s03.html +++ b/doc/tutorial/ar01s03.html @@ -9,7 +9,6 @@ 4 if (doc == NULL ) { fprintf(stderr,"Document not parsed successfully. \n"); - xmlFreeDoc(doc); return; } diff --git a/doc/tutorial/includeaddkeyword.c b/doc/tutorial/includeaddkeyword.c index 479b53b4..975168d7 100644 --- a/doc/tutorial/includeaddkeyword.c +++ b/doc/tutorial/includeaddkeyword.c @@ -22,7 +22,6 @@ parseDoc(char *docname, char *keyword) { if (doc == NULL ) { fprintf(stderr,"Document not parsed successfully. \n"); - xmlFreeDoc(doc); return (NULL); } diff --git a/doc/tutorial/xmltutorial.xml b/doc/tutorial/xmltutorial.xml index ed27bd0c..5e1f7939 100644 --- a/doc/tutorial/xmltutorial.xml +++ b/doc/tutorial/xmltutorial.xml @@ -145,7 +145,6 @@ if (doc == NULL ) { fprintf(stderr,"Document not parsed successfully. \n"); - xmlFreeDoc(doc); return; } -- cgit v1.2.1