Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory leak with GetFilesInFolder
#1
Greetings,

I believe I've encountered a memory leak with GetFilesInFolder. I have some light weight applications that just make some Redis updates, but have noticed the executable starts out at 8mb in memory and grows over the days until it runs OOM.

I've narrowed it down to where it's happening, and it appears to be based around something in GetFilesInFolder

Code:
Copy      Help
ARRAY(str) files

rep
    GetFilesInFolder files "C:\Test\" "*.txt" 4

Even following up with "files = 0" or "files.redim", the memory continues to grow. In deployment this is much more complex and the loop isn't so tight, but this simple test appears to have a leak. This could very well be calls to Dir.dir using CreateEnumFiles, and while Create and Next are used, End is never called.
#2
Thank you very much.
It's a serious bug, leaks 8 KB or more.
Tomorrow I will upload new QM version without this bug.
#3
Fixed in QM 2.4.8.
http://www.quickmacros.com/download.html
#4
Verified fixed. Thanks much, Gintaras!


Forum Jump:


Users browsing this thread: 1 Guest(s)