Sep 3 21:14:19 MDT 2002 John Fleck <jfleck@inkstain.net>
Sep 3 21:14:19 MDT 2002 John Fleck <jfleck@inkstain.net>
* doc/tutorial/includekeyword.c
* doc/tutorial/xmltutorial.xml
(plus resulting generated html files)
fixing one spot I missed in the tutorial where I hadn't freed
memory properly
diff --git a/doc/tutorial/apb.html b/doc/tutorial/apb.html
index 37835d6..f7bcea0 100644
--- a/doc/tutorial/apb.html
+++ b/doc/tutorial/apb.html
@@ -30,6 +30,7 @@
if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
+ xmlFreeDoc(doc);
return;
}
diff --git a/doc/tutorial/ar01s03.html b/doc/tutorial/ar01s03.html
index 373f3ed..047d896 100644
--- a/doc/tutorial/ar01s03.html
+++ b/doc/tutorial/ar01s03.html
@@ -9,6 +9,7 @@
<a name="checkparseerror"></a><img src="images/callouts/4.png" alt="4" border="0"> if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
+ xmlFreeDoc(doc);
return;
}
diff --git a/doc/tutorial/includekeyword.c b/doc/tutorial/includekeyword.c
index fe234e6..d62d0a5 100644
--- a/doc/tutorial/includekeyword.c
+++ b/doc/tutorial/includekeyword.c
@@ -28,6 +28,7 @@
if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
+ xmlFreeDoc(doc);
return;
}
diff --git a/doc/tutorial/xmltutorial.xml b/doc/tutorial/xmltutorial.xml
index 18ebaf5..bfd8c1d 100644
--- a/doc/tutorial/xmltutorial.xml
+++ b/doc/tutorial/xmltutorial.xml
@@ -132,6 +132,7 @@
<co id="checkparseerror" /> if (doc == NULL ) {
fprintf(stderr,"Document not parsed successfully. \n");
+ xmlFreeDoc(doc);
return;
}