]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_network.c
*: remove the configuration lock from all daemons
[mirror_frr.git] / bgpd / bgp_network.c
index a310b7ba740798243ed2412878f38ded5e12f8b4..e15b8f4ec38c356d7a418872e23fdc0d3d81bf47 100644 (file)
@@ -709,8 +709,10 @@ int bgp_socket(struct bgp *bgp, unsigned short port, const char *address)
                return -1;
        }
        if (bgp_option_check(BGP_OPT_NO_ZEBRA) &&
-           bgp->vrf_id != VRF_DEFAULT)
+           bgp->vrf_id != VRF_DEFAULT) {
+               freeaddrinfo(ainfo_save);
                return -1;
+       }
        count = 0;
        for (ainfo = ainfo_save; ainfo; ainfo = ainfo->ai_next) {
                int sock;