From ef8e4220ec071dd0d3df0a903f9547219ee5aea7 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 29 Aug 2008 01:58:10 +0200 Subject: [PATCH] Fix a memory leak. found using llvm static analyzer --- src/hostmask.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hostmask.c b/src/hostmask.c index a0a193d..d024048 100644 --- a/src/hostmask.c +++ b/src/hostmask.c @@ -446,7 +446,6 @@ find_exact_conf_by_address(const char *address, int type, const char *username) if(address == NULL) address = "/NOMATCH!/"; - arec = rb_malloc(sizeof(struct AddressRec)); masktype = parse_netmask(address, (struct sockaddr *)&addr, &bits); #ifdef RB_IPV6 if(masktype == HM_IPV6)