add the missing `free` call