/* * Copyright (C) 1996-2018 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* DEBUG: section 59 auto-growing Memory Buffer with printf */ MemBuf::MemBuf() : buf (NULL), size (0), max_capacity (0), capacity(0), stolen(0) {} MemBuf::~MemBuf() { if (!stolen && buf) clean(); }