Fixed memory leak in process_stream_blocks().