closewin() should use str_free() for ww_label
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Thu, 12 Jan 1984 09:05:57 +0000 (01:05 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Thu, 12 Jan 1984 09:05:57 +0000 (01:05 -0800)
SCCS-vsn: usr.bin/window/cmd3.c 3.7

usr/src/usr.bin/window/cmd3.c

index af7dd07..5b4356b 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)cmd3.c      3.6 83/12/06";
+static char *sccsid = "@(#)cmd3.c      3.7 84/01/11";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -85,7 +85,7 @@ register struct ww *w;
        if (w->ww_id >= 0 && w->ww_id < NWINDOW)
                window[w->ww_id] = 0;
        if (w->ww_label)
        if (w->ww_id >= 0 && w->ww_id < NWINDOW)
                window[w->ww_id] = 0;
        if (w->ww_label)
-               free(w->ww_label);
+               str_free(w->ww_label);
        wwdelete(w);
        wwclose(w);
 }
        wwdelete(w);
        wwclose(w);
 }