fixed resource leak in momctl. Coverity issue 1202188

For error cases the do_mom function would return without
freeing the chan variable.