Fix: remove useless value

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Fix: memory leak on error path

Signed-off-by: David Goulet <dgoulet@ev0ke.net>