fix lookup_java_object_name local reference leak