Index: lib/sendmsg.c =================================================================== --- lib/sendmsg.c (revision 6110) +++ lib/sendmsg.c (working copy) @@ -482,7 +482,10 @@ } if (oneres == BB_OK) { - if (response && response->respstr) addtobuffer(response->respstr, respstr); + if (respstr && response && response->respstr) { + addtobuffer(response->respstr, respstr); + xfree(respstr); + } first = 0; } }