Summary: | Memory leaks in the parser | ||
---|---|---|---|
Product: | [Applications] kdepimlibs | Reporter: | Eugene A. Shatokhin <eugene.shatokhin> |
Component: | kholidays | Assignee: | John Layt <jlayt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adaptee, kdepim-bugs, montel, winter |
Priority: | NOR | ||
Version: | 4.9 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepimlibs/98eae3ab66e30ea6469a7593a7ed8fbc4d717f3e | Version Fixed In: | 4.11 |
Sentry Crash Report: | |||
Attachments: | The patch to fix the leaks |
Description
Eugene A. Shatokhin
2013-02-28 14:57:32 UTC
As far as I can see in the source code of KHolidays in git repo, the problem affects the current version as well. Created attachment 77737 [details]
The patch to fix the leaks
I have finally come up with the patch to fix these leaks. It may be not the best way but it works for me.
Better to put in reviewbord but ok. For me : std::string *fileToParse() seem logical. Perhaps add a "const"; => std::string *fileToParse() const; For other mem leak your fix seems good (but I didn't test it). For yacc language I don't know I don't know syntax but for me your patch seems good. Thanks for the patch Eugene. I will review it and commit as needed. First look seems ok. Git commit 98eae3ab66e30ea6469a7593a7ed8fbc4d717f3e by Allen Winter. Committed on 22/06/2013 at 15:24. Pushed by winterz into branch 'master'. Plug 2 groups of memory leaks in the parser plan2. Thanks for the patch Eugene! FIXED-IN: 4.11 M +6 -0 kholidays/parsers/plan2/holidayparserdriverplan.cpp M +4 -0 kholidays/parsers/plan2/holidayparserdriverplan_p.h M +40 -8 kholidays/parsers/plan2/holidayparserplan.cpp M +9 -7 kholidays/parsers/plan2/holidayparserplan.ypp http://commits.kde.org/kdepimlibs/98eae3ab66e30ea6469a7593a7ed8fbc4d717f3e |