Fix a memory leak.

found using llvm static analyzer
This commit is contained in:
Jilles Tjoelker 2008-08-29 01:58:10 +02:00
parent 03c1fe2153
commit ab2b9e23cc

View file

@ -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)