Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001908graphvizGraph Librariespublic2010-06-17 08:162011-04-28 04:03
ReporterIgor Studenov 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-Windows-OS Version
Summary0001908: memory leaks in gvLayout
Description



Hi



It seems that there are several memory leaks



following sample works fine
<CD>
  aginit;
  gvc = gvContext;



  g = agopen("g", AGRAPH);
  sg = agsubg(g, "g0"); /* A */
  n1 = agnode(sg, "A");
  n2 = agnode(sg, "B");
  e = agedge(sg, n1, n2);
  agsafeset(e, "label", "edge", ""); /* B */



  while( 1 )
  {
    gvLayout(gvc, g, "dot");
    gvFreeLayout(gvc, g);
  }



  agclose(g);
  gvFreeContext(gvc);
</CD>






but if we change line /* A */ to
<CD>
  sg = agsubg(g, "cluster_g0");
</CD>
we notice a memory leak



also memory leaks occur if we change line /* B */ to
<CD>
  agsafeset(e, "label", "ed\lge", "");
</CD>



the effect is repeated in any multi-line edge labels, including
html-like tables.



if we move agopen\agclose, as well as gvContext\gvFreeContext into the
loop, memory still leaking.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1981
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.26.3 (20100126.1600)
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker