fix strmap leak when program exit