1

What is not freeing!? enter image description here

[code snipped by mod]

   // end of load function (mod comment)

    return true;
    fclose(dict_file);
}

[code snipped by mod]

2
  • I had this problem too, not sure what's causing it.
    – i_am_david
    Commented Aug 2, 2015 at 4:22
  • the code snippet you posted above is from load() or from unload() ???
    – kawegan
    Commented Sep 21, 2015 at 15:02

1 Answer 1

0

352 bytes are still reachable because you have failed to close the dict_file. Notice that your function does a return true; and then calls fclose(dict_file); That close statement will never be executed as the function has already returned (i.e., no longer running).

If you close the file before returning, your 352 bytes should no longer be reachable.

1
  • that's true,it worked.
    – csStudent
    Commented Aug 2, 2015 at 6:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .