diff --git a/ChangeLog b/ChangeLog index ce29a5fd..5595f5c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Tue Sep 3 21:14:19 MDT 2002 John Fleck + + * 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 + Sat Aug 31 19:31:17 MDT 2002 John Fleck * doc/tutorial/includeaddattribute.c diff --git a/doc/tutorial/apb.html b/doc/tutorial/apb.html index 37835d6f..f7bcea09 100644 --- a/doc/tutorial/apb.html +++ b/doc/tutorial/apb.html @@ -30,6 +30,7 @@ parseDoc(char *docname) { 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 373f3ed3..047d8969 100644 --- a/doc/tutorial/ar01s03.html +++ b/doc/tutorial/ar01s03.html @@ -9,6 +9,7 @@ 4 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 fe234e6a..d62d0a53 100644 --- a/doc/tutorial/includekeyword.c +++ b/doc/tutorial/includekeyword.c @@ -28,6 +28,7 @@ parseDoc(char *docname) { 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 18ebaf5d..bfd8c1da 100644 --- a/doc/tutorial/xmltutorial.xml +++ b/doc/tutorial/xmltutorial.xml @@ -132,6 +132,7 @@ if (doc == NULL ) { fprintf(stderr,"Document not parsed successfully. \n"); + xmlFreeDoc(doc); return; }