bdgfn: a fix for free() of unused bdgreq