added "more" command
[unix-history] / usr / src / usr.bin / window / wwclose.c
index 114e72b..6c5bea9 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)wwclose.c  3.11 %G%";
+static char sccsid[] = "@(#)wwclose.c  3.13 %G%";
 #endif
 
 #endif
 
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
+ */
+
 #include "ww.h"
 #include <signal.h>
 
 #include "ww.h"
 #include <signal.h>
 
@@ -14,7 +20,7 @@ register struct ww *w;
        if (w->ww_socket >= 0)
                (void) close(w->ww_socket);
        wwfree((char **)w->ww_win, w->ww_w.t);
        if (w->ww_socket >= 0)
                (void) close(w->ww_socket);
        wwfree((char **)w->ww_win, w->ww_w.t);
-       wwfree((char **)w->ww_buf, w->ww_w.t);
+       wwfree((char **)w->ww_buf, w->ww_b.t);
        if (w->ww_fmap != 0)
                wwfree((char **)w->ww_fmap, w->ww_w.t);
        free((char *)(w->ww_nvis + w->ww_w.t));
        if (w->ww_fmap != 0)
                wwfree((char **)w->ww_fmap, w->ww_w.t);
        free((char *)(w->ww_nvis + w->ww_w.t));