summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 20:44:01 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:11 +0200
commit6bee354377719f1227e0cdc8c44bc8bc86691cd5 (patch)
tree59b2ae63c71f1c1b2c17eed97ce83ac22a8b3240 /source3
parent7e6030a495edcd2e9b6b82f63f19524c818aab59 (diff)
downloadsamba-6bee354377719f1227e0cdc8c44bc8bc86691cd5.tar.gz
samba-6bee354377719f1227e0cdc8c44bc8bc86691cd5.tar.bz2
samba-6bee354377719f1227e0cdc8c44bc8bc86691cd5.zip
s3: Fix Coverity ID 2228: RESOURCE_LEAK
Holger, please check!
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbta-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c
index 5b081655e1..6dfa0d524b 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);