summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2008-06-03 02:48:34 +0000
committerBen Laurie <ben@openssl.org>2008-06-03 02:48:34 +0000
commit8671b898609777c95aedf33743419a523874e6e8 (patch)
treec990da274ac4414776ab16f8f755133ec010c7be /ssl/s3_lib.c
parent4f7f4117194c44fede3a32baf0f5905c4800ffa2 (diff)
Memory saving patch.
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r--ssl/s3_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 6844a43b9e..2c0dc7ab14 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -2148,9 +2148,9 @@ void ssl3_free(SSL *s)
ssl3_cleanup_key_block(s);
if (s->s3->rbuf.buf != NULL)
- OPENSSL_free(s->s3->rbuf.buf);
+ ssl3_release_read_buffer(s);
if (s->s3->wbuf.buf != NULL)
- OPENSSL_free(s->s3->wbuf.buf);
+ ssl3_release_write_buffer(s);
if (s->s3->rrec.comp != NULL)
OPENSSL_free(s->s3->rrec.comp);
#ifndef OPENSSL_NO_DH