fix invalid free in mand config load