finalize allocation & freeing of rss stuff
[citadel.git] / citadel / modules / extnotify / funambol65.c
index a3c744ece47f08661dcc2a87c1020f6745851d6c..f81b41dbfadcdc5adba62d58ab25f4437b464c39 100644 (file)
@@ -48,6 +48,7 @@
 #include "extnotify.h"
 
 eNextState EvaluateResult(AsyncIO *IO);
+eNextState ExtNotifyTerminate(AsyncIO *IO);
 
 /*
 * \brief Sends a message to the Funambol server notifying 
@@ -154,7 +155,8 @@ int notify_http_server(char *remoteurl,
 //                       Ctx, 
                          NULL,
                          "Citadel ExtNotify",
-                         EvaluateResult))
+                         EvaluateResult, 
+                         ExtNotifyTerminate))
        {
                CtdlLogPrintf(CTDL_ALERT, "Unable to initialize libcurl.\n");
                goto abort;
@@ -256,3 +258,9 @@ eNextState EvaluateResult(AsyncIO *IO)
        ///FreeStrBuf (&ReplyBuf);
        return 0;
 }
+
+eNextState ExtNotifyTerminate(AsyncIO *IO)
+{
+       free(IO);
+       return eAbort;
+}