Skip to content

Conversation

manmaor
Copy link

@manmaor manmaor commented Feb 20, 2023

Hi, we experienced some leaks in our iOS app, after some investigation we found two memory leaks:

  • rawBytes in UIImageExtension (calloc not freed)
  • normalizedBuffer in UIImageExtension (malloc not freed)

from the Profiler:
Profiler image

In the first case, I was able to free the memory at the end of the method.
But in the second case, we return normalizedBuffer to use as the input, so I freed the input in PyTorchMobilePlugin.

Hoping for your fast response.
Maor.

- free rawBytes in UIImageExtension - free input in PyTorchMobilePlugin
@igala
Copy link

igala commented Mar 13, 2023

@fynnmaarten Hello Fyn,

Can you please review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants