X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet.c;h=b8da09275295129120c230164fb1855ebdb21722;hb=refs%2Fheads%2F1.1-threads;hp=2d1f43a33632f85a54644392b4315c72cb5a59e2;hpb=886a6f61a1f4cc48a77b42d10f34f9126377d904;p=tinc diff --git a/src/subnet.c b/src/subnet.c index 2d1f43a3..b8da0927 100644 --- a/src/subnet.c +++ b/src/subnet.c @@ -469,6 +469,8 @@ void subnet_update(node_t *owner, subnet_t *subnet, bool up) { // 4 and 5 are reserved for SUBNET and WEIGHT xasprintf(&envp[6], "REMOTEADDRESS=%s", address); xasprintf(&envp[7], "REMOTEPORT=%s", port); + free(address); + free(port); } name = up ? "subnet-up" : "subnet-down";