FontInstance.cpp: Mismatching allocation and deallocation: res

Bug #812413 reported by Reijo Tomperi on 2011-07-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Johan Engelen

Bug Description

[../inkscape/inkscape/src/libnrtype/FontInstance.cpp:388]: (error) Mismatching allocation and deallocation: res
(revision 10464)

res is allocated with:
res = g_strdup_printf ("%s%s%s%s",

And deallocated with:

According to the manual g_free() should be used instead:
"The returned string should be freed with g_free() when no longer needed."

Johan Engelen (johanengelen) wrote :

thanks for reviewing the code so precisely. Fix committed. (trunk r10468, 0.48.x r9821)

Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
milestone: none → 0.48.3
status: New → Fix Committed
su_v (suv-lp) on 2011-07-18
tags: added: cppcheck
jazzynico (jazzynico) on 2011-09-11
Changed in inkscape:
importance: Undecided → Low
Ted Gould (ted) on 2012-02-15
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers