GNOME Bugzilla – Bug 569720
objects/Jackson/domain.c:395: Memory leak: s
Last modified: 2009-01-30 17:22:42 UTC
In file objects/Jackson/domain.c:395 Variable "s" allocated memory with g_strdup() but doesn't release it with g_free(). switch (box->domkind) { case DOMAIN_CAUSAL: s=g_strdup("C"); break; case DOMAIN_BIDDABLE: s=g_strdup("B"); break; case DOMAIN_LEXICAL: s=g_strdup("L"); break; default: s=NULL; } if (s!=NULL) { renderer_ops->draw_rect(renderer, &b3, &b1, &JACKSON_BOX_FG_COLOR); renderer_ops->draw_string(renderer, &(*s), &b2, ALIGN_RIGHT, &box->text->color); } This bug was found using cppcheck: http://cppcheck.wiki.sourceforge.net/
2009-01-30 Hans Breuer <hans@breuer.org> * objects/Jackson/domain.c : remove superfluous allocation to avoid leaking it, fixes bug #569720