af_packet: fix possible memory leak