streaming: actually remove the allocation out of the loop this time

Signed-off-by: David Scott <dave.scott@eu.citrix.com>