data_out function to dynamically allocate return value.
[pspp-builds.git] / src / output / html.c
index 90c2ce1915b48a90bcbc1fdad325c2552d09ab0f..893c18527b7ff30e431762ede6658332e6fc5e46 100644 (file)
@@ -24,7 +24,6 @@
 #include <time.h>
 #include <unistd.h>
 
-#include <libpspp/alloc.h>
 #include <libpspp/assertion.h>
 #include <libpspp/compiler.h>
 #include <data/file-name.h>
@@ -34,6 +33,8 @@
 #include "table.h"
 #include <libpspp/version.h>
 
+#include "xalloc.h"
+
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
@@ -91,7 +92,6 @@ html_open_driver (struct outp_driver *this, struct substring options)
   return true;
 
  error:
-  free (x->chart_file_name);
   this->class->close_driver (this);
   return false;
 }