Fix Coverity Scan CID 60348 (Variable addr going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -832,6 +832,11 @@ err:
|
||||
sctp_cnx = NULL;
|
||||
}
|
||||
|
||||
if (addr != NULL) {
|
||||
free(addr);
|
||||
addr = NULL;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user