fix critical memory management error for -s and -S options

(0) -100 -30 -10 -1 +1 tip

mercurial