Commit 4eb03447 authored by Dong Anyuan's avatar Dong Anyuan

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

parent 264e429f
...@@ -832,6 +832,11 @@ err: ...@@ -832,6 +832,11 @@ err:
sctp_cnx = NULL; sctp_cnx = NULL;
} }
if (addr != NULL) {
free(addr);
addr = NULL;
}
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment