--- src/src/ap/hostapd.c.orig	2012-05-02 18:07:09.315330094 +0200
+++ src/src/ap/hostapd.c	2012-05-02 18:06:30.707328227 +0200
@@ -326,6 +326,7 @@ static int hostapd_flush_old_stations(st
 		os_memset(addr, 0xff, ETH_ALEN);
 		hapd->drv.sta_deauth(hapd, addr,
 				     WLAN_REASON_PREV_AUTH_NOT_VALID);
+		hostapd_free_stas(hapd);
 	}
 
 	return ret;
