Fix bugs in rehashing pseudo commands and in kill handling.
[ircu2.10.12-pk.git] / ircd / ircd_parser.y
index 2ce1b6c79cf129c07cfdc7551b6965bdbaafbba6..934f9231b917152a72790d4dd3ec409bf8db5d6e 100644 (file)
@@ -959,16 +959,7 @@ pseudoitems '}' ';'
   }
   else
   {
-    struct nick_host *nh, *next;
-    for (nh = smap->services; nh; nh = next)
-    {
-      next = nh->next;
-      MyFree(nh);
-    }
-    MyFree(smap->name);
-    MyFree(smap->command);
-    MyFree(smap->prepend);
-    MyFree(smap);
+    free_mapping(smap);
   }
   smap = NULL;
 };