Memory leak here.  To fix:  Don't malloc() until after checking banlist_window.