freeQuery(q) frees  ptrs created in common_create()