Fix memory leak in URL scanning code

Match needs to be freed.