From 6bce8e1cfba8d8a12adb9c1da3464074659dff46 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 2 May 2013 14:43:28 +0200 Subject: [PATCH] libimcv: Properly deinitialize libimcv Other users of imcv_pa_tnc_attributes (libpts) check if it is NULL before removing vendor IDs. --- src/libimcv/imcv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libimcv/imcv.c b/src/libimcv/imcv.c index b52b81c42..b5862daee 100644 --- a/src/libimcv/imcv.c +++ b/src/libimcv/imcv.c @@ -174,6 +174,7 @@ void libimcv_deinit(void) imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_IETF); imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_ITA); DESTROY_IF(imcv_pa_tnc_attributes); + imcv_pa_tnc_attributes = NULL; DESTROY_IF(imcv_db); DBG1(DBG_LIB, "libimcv terminated"); }