#147 File close in wvInitParser

open
nobody
None
5
2005-11-18
2005-11-18
PDN
No

Hi, I was wondering if there is a
g_object_unref(G_OBJECT (input));
missing at the end of the function wvInitParser in
wvparse.c.

I noticed that a program which opens lots of files
fails after about 1000 iterations because there are too
many files open. I can reproduce this problem with wv
1.2.0 in Suse 10 running this code:

wvInit();
for (i = 0; i != 2000; ++i) {
wvParseStruct ps;
wvInitParser(&ps, "somefile");
wvOLEFree(&ps);
tokenTreeFreeAll();
}
wvShutdown();

Discussion

  • Dom Lachowicz

    Dom Lachowicz - 2006-03-11

    Logged In: YES
    user_id=69417

    This only seems to break things worse. I'm not seeing any
    leaks these days related to libgsf. Please submit a valgrind
    report. Thanks.

     
  • PDN

    PDN - 2006-04-07

    Logged In: YES
    user_id=1381701

    Please find attached a valgrind and strace report.

     
  • PDN

    PDN - 2006-04-07

    valgrind report

     
  • PDN

    PDN - 2006-04-07

    strace

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks