Fixes memory leaks of AuthBasicConfig field.
/*
- * $Id: auth_basic.cc,v 1.48 2007/05/09 07:36:26 wessels Exp $
+ * $Id: auth_basic.cc,v 1.49 2007/08/01 23:12:33 amosjeffries Exp $
*
* DEBUG: section 29 Authenticator
* AUTHOR: Duane Wessels
basicAuthRealm = xstrdup("Squid proxy-caching web server");
}
+AuthBasicConfig::~AuthBasicConfig()
+{
+ if(basicAuthRealm)
+ delete basicAuthRealm;
+ basicAuthRealm = NULL;
+}
+
void
AuthBasicConfig::parse(AuthConfig * scheme, int n_configured, char *param_str)
{
public:
AuthBasicConfig();
+ ~AuthBasicConfig();
virtual bool active() const;
virtual bool configured() const;
virtual AuthUserRequest *decode(char const *proxy_auth);