X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e69bb4e903f428b14e2950cce9be39dc8ddd12c..1d39b466d4ddd974674c9397589d45935c746ed0:/src/supported.c diff --git a/src/supported.c b/src/supported.c index 8066c7f..001a192 100644 --- a/src/supported.c +++ b/src/supported.c @@ -81,7 +81,6 @@ */ #include "stdinc.h" -#include "tools.h" #include "client.h" #include "common.h" #include "numeric.h" @@ -104,7 +103,7 @@ add_isupport(const char *name, const char *(*func)(const void *), const void *pa { struct isupportitem *item; - item = MyMalloc(sizeof(struct isupportitem)); + item = rb_malloc(sizeof(struct isupportitem)); item->name = name; item->func = func; item->param = param; @@ -124,7 +123,7 @@ delete_isupport(const char *name) if (!strcmp(item->name, name)) { rb_dlinkDelete(ptr, &isupportlist); - MyFree(item); + rb_free(item); } } }