pktcap: fix the only possible memory leak

A well ehaved user should pick memory from a memory pool but for simplicity I'll
just malloc & free, of course.