Fix: kernel memory leak in error path

Signed-off-by: David Goulet <dgoulet@efficios.com>