- Fix temp memory leak - Free memory during error handling Signed-off-by: Francois Berder <fberder@outlook.fr>