fixed minor mem leak on connect of diameter connection

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@831 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent e46e35a466
commit 502c2166e7

@ -223,6 +223,8 @@ void ServerConnection::openConnection() {
return;
}
AAAFreeMessage(&cer);
AAAMessage* cea = NULL;
res = tcp_recv_reply(conn.sockfd, &conn.rb, &cea,
CONNECT_CEA_REPLY_TIMEOUT, 0);
@ -238,6 +240,8 @@ void ServerConnection::openConnection() {
if (cea != NULL)
AAAPrintMessage(cea);
#endif
AAAFreeMessage(&cea);
DBG("Connection opened.\n");
open = true;

Loading…
Cancel
Save