assembly: fix memory leak in arc kernel

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>