The correct way to fix this problem is modifying the code using
realloc
so only one pointer is considered for ownership puposes (that is,
getting the start-of-buffer address and free'ing the buffer).
address@hidden lib]$ source-grep realloc
/home/vdhoeven/texmacs/src/plugins/graphviz/src/tm_graphviz.c: buf
= (char*)realloc( buf, buflen);
/home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char
*)realloc( b->buf, b->size ) ;
/home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char
*)realloc( b->buf, b->size ) ;
/home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char
*)realloc( b->buf, b->size ) ;
/home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char
*)realloc( b->buf, b->size ) ;
/home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char
*)realloc( b->buf, b->size ) ;
TeXmacs does not use realloc; only some plug-ins do, namely R and ...
Graphviz.
If someone could correct this problem...