diff --git a/ChangeLog b/ChangeLog
index 7e2bc686c170cecb68c4b76a2c3e12c1577b72e0_Q2hhbmdlTG9n..8aa690dda85df20cfe8abc119d8cdf8b9e313747_Q2hhbmdlTG9n 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 17 17:43:43 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+	* xsltproc/xsltproc.c: fixed a double free of stylesheet
+	  when applied to a standalone stylesheet
+
 Tue Jan 14 16:22:48 CET 2003 Daniel Veillard <daniel@veillard.com>
 
 	* configure.in: preparing release 2.0.24
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 7e2bc686c170cecb68c4b76a2c3e12c1577b72e0_eHNsdHByb2MveHNsdHByb2MuYw==..8aa690dda85df20cfe8abc119d8cdf8b9e313747_eHNsdHByb2MveHNsdHByb2MuYw== 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -765,6 +765,7 @@
 		    /* it is an embedded stylesheet */
 		    xsltProcess(style, cur, argv[i]);
 		    xsltFreeStylesheet(cur);
+		    cur = NULL;
 		    goto done;
 		}
 		cur = xsltParseStylesheetDoc(style);