Some checks for return codes are missing.
Examples:
Would you like to add more error handling for return values from "malloc" and "calloc" in the functions like "rdbuf_image" and "c_plscmap0n"?
http://plplot.cvs.sourceforge.net/plplot/plplot/src/plbuf.c?revision=1.16&view=markup
http://plplot.cvs.sourceforge.net/plplot/plplot/src/plctrl.c?revision=1.87&view=markup
Logged In: YES
user_id=572001
Originator: YES
There are more function calls left that should also be checked for error codes.
Examples:
- fprintf, fclose
line 2277: malloc( sizeof(PLDispatchTable) )
http://plplot.cvs.sourceforge.net/plplot/plplot/src/plcore.c?revision=1.177&view=markup
- pthread_create
http://plplot.cvs.sourceforge.net/plplot/plplot/drivers/gnome.c?revision=1.32&view=markup