X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput.c;h=1409316a0ce68041344940ecb2b630b3fb7ace33;hb=397e4b99a356c51cab364f14373c15982db14d87;hp=e33172e21d39c50e4bb54f309d02beb0a9faa2f2;hpb=92bfefccd465052e492f669ce561aa25b0110283;p=pspp diff --git a/src/output.c b/src/output.c index e33172e21d..1409316a0c 100644 --- a/src/output.c +++ b/src/output.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "output.h" @@ -442,12 +442,22 @@ destroy_list (struct outp_driver ** dl) int outp_done (void) { + struct outp_driver_class_list *n = outp_class_list ; #if GLOBAL_DEBUGGING if (iterating_driver_list) reentrancy (); #endif destroy_list (&outp_driver_list); + while (n) + { + struct outp_driver_class_list *next = n->next; + free(n); + n = next; + } + free (outp_title); + free (outp_subtitle); + return 1; }