cucim icon indicating copy to clipboard operation
cucim copied to clipboard

[FEA] Prevent memory leak during the development

Open gigony opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Since the project doesn't have a mechanism for preventing memory leaks, there are high chances to introduce memory leaks during the development.

Describe the solution you'd like

  • Make use of a safe pointer (smart pointer) or scoped deleter for 3rdparty library/internal memory allocation.
  • Run unit/integration tests with memory sanitizer/tracker (e.g., valgrind/asan)

Additional context

There are many cases that we introduced memory leak problems.

  • https://github.com/rapidsai/cucim/pull/37
  • https://github.com/rapidsai/cucim/pull/9

gigony avatar May 19 '21 00:05 gigony

Yeah this is being looked into generally for RAPIDS libraries.

jakirkham avatar Aug 18 '21 17:08 jakirkham