FontInstance.cpp: Mismatching allocation and deallocation: res
Bug #812413 reported by
Reijo Tomperi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Johan Engelen |
Bug Description
[../inkscape/
(revision 10464)
res is allocated with:
res = g_strdup_printf ("%s%s%s%s",
And deallocated with:
free(res)
According to the manual g_free() should be used instead:
http://
"The returned string should be freed with g_free() when no longer needed."
tags: | added: cppcheck |
Changed in inkscape: | |
importance: | Undecided → Low |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
thanks for reviewing the code so precisely. Fix committed. (trunk r10468, 0.48.x r9821)