mbtool: Fix memory leak in config.c