Some checks for return codes are missing.
Example:
Please add more error handling for null pointers from
"strdup" like in the function "tl" and from "malloc"
like in the functions "stat_sqlplus" and "get_env".
http://cvs.sourceforge.net/viewcvs.py/gqlplus/gqlplus/gqlplus.c?rev=1.6&view=markup
Logged In: YES
user_id=572001
Originator: YES
Would you also like to check for error codes from the functions "fprintf" and "fclose"?