The function wtrimspace returns a wmalloced memory region, therefore it must be wfreed after usage again. Please take note that this also happens with every single line of menu files, which will get fixed in a separate commit.