[ruamoko] Actually save the cooke

This fixes the listener leak.
This commit is contained in:
Bill Currie 2021-12-23 11:23:39 +09:00
parent f77da210ff
commit 2e3e9ea7c0

View file

@ -205,6 +205,7 @@ make_cookie (progs_t *pr, func_t func, pointer_t data)
cookie = cmemalloc (res->cookie_super, sizeof (rua_in_cookie_t));
*cookie = search;
cookie->pr = pr;
Hash_AddElement (res->cookies, cookie);
}
cookie->users++;
return cookie;