[nadc_tools]: fixed several memory leaks