[dispatcher] Fixed two allocs for uri str. No more shm leak.