summaryrefslogtreecommitdiff
path: root/tests/resume.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-06-07 18:08:51 +0200
committerSimon Josefsson <simon@josefsson.org>2008-06-07 18:08:51 +0200
commit850af77a606e16c4fecb2725b8ac69b7ac19a0e0 (patch)
tree0b5fa21bb46f25c2742d57a398f8cb4f7404764f /tests/resume.c
parent6a7057dd9f3d9dc91c8ca2033b97a694fc228ed1 (diff)
downloadgnutls-850af77a606e16c4fecb2725b8ac69b7ac19a0e0.tar.gz
Fix memory leak.
Diffstat (limited to 'tests/resume.c')
-rw-r--r--tests/resume.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/resume.c b/tests/resume.c
index ff6f43c5f0..e36f9c0167 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -411,6 +411,11 @@ server (void)
close (listen_sd);
+ if (TLS_SESSION_CACHE != 0)
+ {
+ wrap_db_deinit ();
+ }
+
success ("server: finished\n");
}
@@ -475,6 +480,9 @@ wrap_db_init (void)
static void
wrap_db_deinit (void)
{
+ if (cache_db)
+ free (cache_db);
+ cache_db = NULL;
return;
}