]> jfr.im git - solanum.git/commitdiff
Fix a memory leak.
authorJilles Tjoelker <redacted>
Thu, 28 Aug 2008 23:58:10 +0000 (01:58 +0200)
committerJilles Tjoelker <redacted>
Thu, 28 Aug 2008 23:58:10 +0000 (01:58 +0200)
found using llvm static analyzer

src/hostmask.c

index a0a193d5c7375f26b39c12c1e913aa1b1c3fdfa6..d02404882ce8cc0de294885dc092e4d211003d74 100644 (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)