kill bug: mistake of malloc memory size