diff --git a/ocr-service-v1/ocr-service-processor/src/main/java/com/knecon/fforesight/service/ocr/processor/utils/NativeMemoryAllocationUtils.java b/ocr-service-v1/ocr-service-processor/src/main/java/com/knecon/fforesight/service/ocr/processor/utils/NativeMemoryAllocationUtils.java index 8da78d7..4ec153d 100644 --- a/ocr-service-v1/ocr-service-processor/src/main/java/com/knecon/fforesight/service/ocr/processor/utils/NativeMemoryAllocationUtils.java +++ b/ocr-service-v1/ocr-service-processor/src/main/java/com/knecon/fforesight/service/ocr/processor/utils/NativeMemoryAllocationUtils.java @@ -17,8 +17,7 @@ public class NativeMemoryAllocationUtils { FloatBuffer orient_confB = FloatBuffer.allocate(1); PointerByReference script_nameB = new PointerByReference(); FloatBuffer script_confB = FloatBuffer.allocate(1); - DetectionScriptBuffers buffers = new DetectionScriptBuffers(orient_degB, orient_confB, script_nameB, script_confB); - return buffers; + return new DetectionScriptBuffers(orient_degB, orient_confB, script_nameB, script_confB); }