miscellaneous bugfixes and indentation fixes
[srvx.git] / src / opserv.c
index 0a3ac77767078e0cf7ee0a440282b1ecc124ed00..26dab12415b486e4941e7de64899ffd4fd46fc0b 100644 (file)
@@ -1047,6 +1047,7 @@ static MODCMD_FUNC(cmd_kickbanall)
         change->args[0].hostmask = "*!*@*";
     }
     modcmd_chanmode_announce(change);
+    mod_chanmode_free(change);
     if (argc < 2) {
        reason = alloca(strlen(OSMSG_KICK_REQUESTED)+strlen(user->nick)+1);
        sprintf(reason, OSMSG_KICK_REQUESTED, user->nick);