fix jni leak memory, if simhash is equal zero, give an new digest