From a77f3c4e1c594c492d3e7b4aea870f0f03426d3a Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 12 Sep 2013 22:47:45 +0200 Subject: [PATCH] extnotify: free up resources on exit. --- citadel/modules/extnotify/funambol65.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/citadel/modules/extnotify/funambol65.c b/citadel/modules/extnotify/funambol65.c index f50547c2e..20246c90d 100644 --- a/citadel/modules/extnotify/funambol65.c +++ b/citadel/modules/extnotify/funambol65.c @@ -265,6 +265,7 @@ eNextState EvaluateResult(AsyncIO *IO) CtdlAideMessage(ChrPtr(ErrMsg), "External notifier: " "unable to contact notification host!"); + FreeStrBuf(&ErrMsg); } syslog(LOG_DEBUG, "Funambol notified\n"); @@ -301,7 +302,7 @@ eNextState EvaluateResult(AsyncIO *IO) ///if (SOAPMessage != NULL) free(SOAPMessage); ///if (buf != NULL) free(buf); ///FreeStrBuf (&ReplyBuf); - return 0; + return eTerminateConnection; } eNextState ExtNotifyTerminateDB(AsyncIO *IO) -- 2.30.2