lib/util/modules.c: fix stackframe leak.