Some checks for return codes are missing.
Example:
Please add more error handling for null pointers from
"malloc" like in the functions "strndup",
"sort_players" and "deal_with_gamespy_master_response".
http://cvs.sourceforge.net/viewcvs.py/qstat/qstat2/qstat.c?rev=1.91&view=markup
If this is still an issue please open a issue / pull request @ https://github.com/multiplay/qstat