remove unnecessary memory-leaking strdup

see #228