extnotify: free up resources on exit.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 12 Sep 2013 20:47:45 +0000 (22:47 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 12 Sep 2013 20:47:45 +0000 (22:47 +0200)
citadel/modules/extnotify/funambol65.c

index f50547c2ee41814ce2341278e59c963c60ddeae5..20246c90d02a38ac25193743a01440340b5fca48 100644 (file)
@@ -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)