]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Rework Rock::SwapDir::getOptionTree (CID 1312104)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 22 Jul 2015 16:43:48 +0000 (18:43 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 22 Jul 2015 16:43:48 +0000 (18:43 +0200)
src/fs/rock/RockSwapDir.cc

index 9bb40e899c0494957c1a2081066b7caf19d0a050..14ad992754fa2a63c3d23778a64cb9b1a6320545 100644 (file)
@@ -416,8 +416,9 @@ Rock::SwapDir::getOptionTree() const
         // we don't know how to handle copt, as it's not a ConfigOptionVector.
         // free it (and return nullptr)
         delete copt;
+        copt = nullptr;
     }
-    return vector;
+    return copt;
 }
 
 bool