refactor naming of core message manipulation funcions
[citadel.git] / citadel / modules / instmsg / serv_instmsg.c
index 9a75e281ccb7c0f9d8371cedff15dba0f9084391..72f3256dee2185293635ec91a9f0787982cca63d 100644 (file)
@@ -483,7 +483,7 @@ void flush_individual_conversation(struct imlog *im) {
        snprintf(roomname, sizeof roomname, "%010ld.%s", im->usernums[1], PAGELOGROOM);
        CtdlCreateRoom(roomname, 5, "", 0, 1, 1, VIEW_BBS);
        msgnum = CtdlSubmitMsg(msg, NULL, roomname, 0);
-       CtdlFreeMessage(msg);
+       CM_Free(msg);
 
        /* If there is a valid user number in usernums[0], save a copy for them too. */
        if (im->usernums[0] > 0) {