[Reviewed: Mike] Fix memory leak by freeing associated URI JSON arrays

Valgrind pointed out we were leaking the associated URI JSON arrays.  We should be deleting them.