Replace in read-only file reports memory leak

DV
2013-03-22
2013-03-27
  • DV
    DV
    2013-03-22

    sfk 1.6.6 Oct 8 2012, Windows XP.

    1. Create a file "1.txt" that contains a text "11"
    2. Make this file to be read-only
    3. Run "sfk replace 1.txt /1/22/ -yes" - this will show you:

    error: cannot rewrite file: 1.txt
    1 files checked, 0 changed.
    1 errors occurred.
    MEM LEAK: adr 00C350FC, size 1028, alloc'ed in sfk.cpp 23095
    MEM LEAK: adr 00C350C4, size 16, alloc'ed in sfk.cpp 17126
    [SMEMDEBUG: 24 new's, 22 delete's, 0 errors, 2 leaks]

    That's a small thing to report, actually - but probably it will lead to big improvements during the investigation :)

     
  • stahlworks
    stahlworks
    2013-03-27

    It is a memory leak indeed, and will be fixed in the next release.