apr_pcalloc should take care of freeing this for you when the pool is deallocated.