Fix invalid frame memory leak in s_beacon_recv