Menu

#1500 missing fclose

Undefined
fixed
nobody
None
Bug_Report
2024-09-04
2024-09-02
No

File:
src/plugins/contrib/SpellChecker/wxspellchecker/MySpell/hashmgr.cxx line 158
Code:
// raw dictionary - munched file
FILE * rawdict = fopen(tpath, "r");
if (rawdict == NULL) return 1;
// first read the first line of file to get hash table size */
char ts[MAXDELEN];
if (! fgets(ts, MAXDELEN-1,rawdict)) return 2; // <-- fclose missing
mychomp(ts);
tablesize = atoi(ts);
if (!tablesize) return 4; // <-- fclose missing

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2024-09-04
    • status: open --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2024-09-04

    Fixed in [r13544], thank you.

    This file is not part of the plugin (we have discussed this before). Anyway, I fixed it so the code checker does not find it again.

     

    Related

    Commit: [r13544]


Log in to post a comment.