Is this not a double release?  You don't grab it in this function (that I can see)...