Fix a memory leak (#976).
commit880a21830cc030edc11b7d1c195e8a7b61679e15
authorKeith Rarick <kr@essembly.com>
Wed, 14 Nov 2007 21:10:08 +0000 (14 13:10 -0800)
committerKeith Rarick <kr@essembly.com>
Wed, 14 Nov 2007 21:10:08 +0000 (14 13:10 -0800)
tree44fa5682dba3a99dc3f6b004e01db1a993c2d5d4
parent87f08a8ee59eb12b8890ec6c34a2ca18b7ee32a4
Fix a memory leak (#976).

Normally conn_close() frees c->in_job, but enqueue_incoming_job()
nulled out c->in_job before checking for the trailing "\r\n". This
means that if the put command doesn't have a trailing "\r\n" after the
job body, we would leak the job.
beanstalkd.c