Possible memory leak with CSEARCH
Brought to you by:
entrope
Not sure if you prefer SF or GitHub, so I'll just stick this here?
Possible memory leak when using CSEARCH and not providing arguments for criteria. In opserv_cdiscrim_create(), line ~3648:
if (i == (argc - 1)) {
send_message(user, opserv, "MSG_MISSING_PARAMS", argv[i]);
return NULL;
}
It simply returns NULL and doesn't free discrim, instead of jumping to fail and cleaning up first.