56de1f4ed1
res_buf was not freed for the chunk response type in case of first_chunk_sent true condition. This commit ensures that resp_buf is freed and few cosmetic changes are made