cucim
cucim copied to clipboard
Wrapping resource(memory) handling code with RAII
Is your feature request related to a problem? Please describe.
Current implementation is not handling error cases well -- memory allocated is manually freed by calling free()
or cucim_free()
method.
We need to improve the whole code to use RAII.
Describe the solution you'd like
Create a utility class to handle resources.