This patch fixes:
- a SSL_CTX object memory leak
- a very small memory leak in MimeIcon class
- a small memory leak while parsing adaptation_service
bool
Adaptation::ServiceConfig::parse()
{
- char *method_point = NULL;
+ String method_point;
ConfigParser::ParseString(&key);
ConfigParser::ParseString(&method_point);
- method = parseMethod(method_point);
- point = parseVectPoint(method_point);
+ method = parseMethod(method_point.termedBuf());
+ point = parseVectPoint(method_point.termedBuf());
// reset optional parameters in case we are reconfiguring
bypass = routing = false;
configFreeMemory(void)
{
free_all();
+#if USE_SSL
+ SSL_CTX_free(Config.ssl_client.sslContext);
+#endif
}
void
public:
MimeIcon ();
+ ~MimeIcon ();
void setName (char const *);
char const * getName () const;
void _free();
MimeIcon::MimeIcon () : icon (NULL), url (NULL)
{}
+MimeIcon::~MimeIcon ()
+{
+ _free();
+}
+
void
MimeIcon::setName (char const *aString)
{