Issue #50: fixed possible double-free case in flat combining algorithm