Because you used NewStringUTF consider adding:
`env->DeleteLocalRef(pkey);` and
`env->DeleteLocalRef(pvalue);`
After calling this the JNI will free this memory heap on the next garbage collection cycle.

This applies to the `getItem` binding as well.