X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fhtml.c;h=043965eeece20d42d1c6489c0b54cf0790b29248;hb=c246143823df29e9ce4c5115c647a47954dea883;hp=021200bc9749125437631b9b07fd6ee095c86825;hpb=97d4f38945476834fd7fce612b663f19f2b291f8;p=pspp diff --git a/src/output/html.c b/src/output/html.c index 021200bc97..043965eeec 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -87,10 +86,12 @@ html_open_driver (struct outp_driver *this, struct substring options) fputs (" LINK=\"#1f00ff\" ALINK=\"#ff0000\" VLINK=\"#9900dd\">\n", x->file); print_title_tag (x->file, "H1", outp_title); print_title_tag (x->file, "H2", outp_subtitle); + free (x->chart_file_name); return true; error: + free (x->chart_file_name); this->class->close_driver (this); return false; } @@ -147,7 +148,7 @@ enum }; /* All the options that the HTML driver supports. */ -static struct outp_option option_tab[] = +static const struct outp_option option_tab[] = { {"output-file", string_arg, 0}, {"chart-files", string_arg, 1}, @@ -399,7 +400,7 @@ html_finalise_chart(struct outp_driver *d UNUSED, struct chart *ch) /* HTML driver class. */ -struct outp_class html_class = +const struct outp_class html_class = { "html", 1,