Make sure bs is assigned NULL when it's free'd, or there will be an