free memory in anc_rls_single.c

Add 'free' calls to the data for deallocation