whitphx / lear-gist-python

A python wrapper for Lear's GIST implementation working with numpy
MIT License
55 stars 14 forks source link

Memory leak #2

Closed cartisan closed 9 years ago

cartisan commented 9 years ago

I discovered that the c module is leaking main memory.

Reproduction steps:

  1. Find some 20 big images
  2. use gist.extract() in a for-loop to compute the features for each image
  3. During processing check memory consumption e.g. using top

My CPython is awefull so I couldn't find the leak. I would assume something like an unfinalized filepointer, but that is just guessing.

//Oh, right! I exchanged lear-gist-python with the gist implementation here: https://github.com/malcolmreynolds/pyleargist and that solved the leak for me, so maybe you can snoop around in Malcoms code to find an easy fix. :D

whitphx commented 9 years ago

Hi @cartisan , I'm sorry for my late reply. I added some codes to release memory allocated to store an image and descriptors ( #5 ). Thank you for your report!