]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/mgr/ActionPasswordList.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / mgr / ActionPasswordList.cc
index 3aee7e6c86085f1fb8926608e542ddde1367302c..e742f8a6bce8a70c3aef0b1efb3b7e6094bf04d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -8,12 +8,11 @@
 
 #include "squid.h"
 #include "mgr/ActionPasswordList.h"
-#include "wordlist.h"
+#include "sbuf/List.h"
 
 Mgr::ActionPasswordList::~ActionPasswordList()
 {
-    safe_free(passwd);
-    wordlistDestroy(&actions);
-    delete next;
+    xfree(passwd);
+    delete next; // recurse, these lists are usually not long
 }