Menu

#231 Possible memory leak with CSEARCH

open
Entrope
OperServ (38)
5
2013-03-05
2013-03-05
Jason
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.