summaryrefslogtreecommitdiff
path: root/doc/tutorial
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-01-06 11:06:26 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-01-06 11:06:26 +0000
commite0ed10cb0f7244f781f84ecf2b063d1a7deb2b63 (patch)
treed563f458edc9d89985eb8ce2d0a72d84f7d89b6d /doc/tutorial
parent0aaaacdb432dc8d28bc92df63adde811f96d8795 (diff)
downloadlibxml2-e0ed10cb0f7244f781f84ecf2b063d1a7deb2b63.tar.gz
fixed #101894 if doc == NULL xmlFreeDoc should not be called. Daniel
* doc/tutorial/* : fixed #101894 if doc == NULL xmlFreeDoc should not be called. Daniel
Diffstat (limited to 'doc/tutorial')
-rw-r--r--doc/tutorial/apc.html1
-rw-r--r--doc/tutorial/ar01s03.html1
-rw-r--r--doc/tutorial/includeaddkeyword.c1
-rw-r--r--doc/tutorial/xmltutorial.xml1
4 files changed, 0 insertions, 4 deletions
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,&quot;Document not parsed successfully. \n&quot;);
- 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 @@
<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;
}
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 @@
<co id="checkparseerror" /> if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
- xmlFreeDoc(doc);
return;
}