Fix memleaks in radiff2, segfaults in 8051 and aagraph