datapath: Use local variable for freeing on flow put error.