From 6bee354377719f1227e0cdc8c44bc8bc86691cd5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Mar 2011 20:44:01 +0200 Subject: [PATCH] s3: Fix Coverity ID 2228: RESOURCE_LEAK Holger, please check! --- source3/utils/smbta-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c index 5b081655e1f..6dfa0d524be 100644 --- a/source3/utils/smbta-util.c +++ b/source3/utils/smbta-util.c @@ -154,6 +154,7 @@ static void load_key_from_file_and_activate( char *filename) if (akey != NULL) { printf("Removing the old key.\n"); delete_key(); + SAFE_FREE(akey); } printf("Installing the key from file %s\n",filename); secrets_store("smb_traffic_analyzer_key", key, strlen(key)+1); -- 2.11.4.GIT