fixed memory leaks

pull/1/head
Kaleb Himes 2014-06-05 10:34:38 -06:00
parent 07ef137657
commit 99a3c45aef
1 changed files with 3 additions and 10 deletions

View File

@ -44,13 +44,9 @@ static int cleanup; /* To handle shutdown */
void AwaitDGram(); /* Separate out Handling Datagrams */
CYASSL_CTX* ctx;
void sig_handler(const int sig);
//rm static
int udp_read_connect(int);
//rm static
void NonBlockingSSL_Accept(CYASSL*);
//rm static
void dtls_set_nonblocking(int*);
//rm static
int dtls_select();
enum {
@ -175,13 +171,10 @@ void AwaitDGram()
cleanup = 1;
}
printf("Reply sent:\"%s\"\n", ack);
memset(buff, 0, sizeof(buff));
/* do not close listenfd, breaks*/
//close(listenfd);
// CyaSSL_set_fd(ssl, 0);
CyaSSL_free(ssl);
// CyaSSL_shutdown(ssl);
/* free allocated memory */
memset(buff, 0, sizeof(buff));
CyaSSL_free(ssl);
/* End Reply to Client */
}
}