From bec4d3b61d05dfc014fd9142d8ea2ec1d0bd5a1d Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 5 Jun 2008 15:32:29 +0200 Subject: [PATCH] Release the authmech before starting to free data in an authhandle. --- daemon/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/auth.c b/daemon/auth.c index 470c985..d8c7a35 100644 --- a/daemon/auth.c +++ b/daemon/auth.c @@ -80,10 +80,10 @@ void authputhandle(struct authhandle *auth) { if(--auth->refcount) return; - if(auth->text != NULL) - free(auth->text); if(auth->mechdata != NULL) auth->mech->release(auth); + if(auth->text != NULL) + free(auth->text); free(auth); } -- 2.11.0