From: Wilfried Goesgens Date: Thu, 12 Sep 2013 20:47:45 +0000 (+0200) Subject: extnotify: free up resources on exit. X-Git-Tag: v9.01~266 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a77f3c4e1c594c492d3e7b4aea870f0f03426d3a extnotify: free up resources on exit. --- 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)