[PATCH] Fix memory leaks in auth_digest.cc

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 21 Dec 2012 15:59:32 +0100

Hi all,
  the attached patch addresses Coverity issue 740431: in
Auth::Digest::Config::decode, username is allocated on the heap and
not freed in case of certain errors.

I've taken the chance to get rid of a few HEREs.

An alternate approach would be to pass Strings (eventually, SBufs)
around, so that the memory would be reclaimed automatically.

--
    /kinkie

Received on Fri Dec 21 2012 - 14:59:40 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 27 2012 - 12:00:24 MST