Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-RT-Original-Encoding: iso-8859-1 Content-Length: 151 the malloc at ccbase.c:110 is redundant. The following lines do another malloc assigning the result to the same variable without freeing the old value