Andrew, I was just about to write a patch for freeing plbuf_buffer and I saw that you had beaten me to the punch. The question that I have is whether plP_tidy is the best place. I note that plP_tidy is called by c_plend1() and plGetFam(). The plGetFam() function gets called by the driver bop functions (e.g. plD_bop_ps).
I've attached a patch where I moved your code (and used the free_mem macro) to c_plend()
plplot_patch
Description: Patch to plcore.c
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel