E3-1504: fix memory leaks on IOC exit
Fix memory leaks: https://confluence.esss.lu.se/display/E3/E3-1504%3A+Memory+leaks+found+with+libasan
=12373==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7fbbfd226a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x7fbbf918836c in fillModuleListRecord .././src/require.c:222
#2 0x7fbbf918836c in fillModuleListRecord .././src/require.c:208
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7fbbfd226a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x7fbbf9188381 in fillModuleListRecord .././src/require.c:224
#2 0x7fbbf9188381 in fillModuleListRecord .././src/require.c:208
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7fbbfd226a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x7fbbf9188396 in fillModuleListRecord .././src/require.c:226
#2 0x7fbbf9188396 in fillModuleListRecord .././src/require.c:208