Add error checking to allocateConfigStream().