Bug 17651 - leaks a sax parser struct
Summary: leaks a sax parser struct
Status: RESOLVED FIXED
Alias: None
Product: libxklavier
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Sergey V. Udaltsov
QA Contact: Sergey V. Udaltsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-18 21:31 UTC by Matthias Clasen
Modified: 2008-11-26 15:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (1.11 KB, patch)
2008-09-18 21:31 UTC, Matthias Clasen
Details | Splinter Review

Description Matthias Clasen 2008-09-18 21:31:16 UTC
Created attachment 18993 [details] [review]
patch

libxml already allocates a sax parser struct.

==4807== 128 bytes in 1 blocks are definitely lost in loss record 9,012 of 10,042
==4807==    at 0x4006AEE: malloc (vg_replace_malloc.c:207)
==4807==    by 0x69AC39E: xmlInitParserCtxt (parserInternals.c:1536)
==4807==    by 0x69AC651: xmlNewParserCtxt (parserInternals.c:1782)
==4807==    by 0x5D71E8: xkl_config_registry_load_from_file (xklavier_config.c:482)
==4807==    by 0x5D76FF: xkl_config_registry_load_helper (xklavier_config.c:530)
==4807==    by 0x5DA430: xkl_xkb_load_config_registry (xklavier_config_xkb.c:100)
==4807==    by 0x5D71BA: xkl_config_registry_load (xklavier_config.c:734)
Comment 1 Sergey V. Udaltsov 2008-11-26 15:25:12 UTC
Thanks, well spotted. Committed!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.