Fix Coverity Scan CID 60348 (Variable addr going out of scope leaks the storage it points to.)

This commit is contained in:
Dong Anyuan
2019-06-20 12:37:36 +09:00
parent 264e429f23
commit 4eb0344714
+5
View File
@@ -832,6 +832,11 @@ err:
sctp_cnx = NULL;
}
if (addr != NULL) {
free(addr);
addr = NULL;
}
return -1;
}