From c07b5d06a1801439082be5361a5c85d7b9df1d0f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 28 May 2018 18:10:05 +0200 Subject: [PATCH] rec: Fix a typo in one comment of the negative cache unit tests --- pdns/recursordist/test-negcache_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/test-negcache_cc.cc b/pdns/recursordist/test-negcache_cc.cc index 243179465..f5ddec76b 100644 --- a/pdns/recursordist/test-negcache_cc.cc +++ b/pdns/recursordist/test-negcache_cc.cc @@ -385,7 +385,7 @@ BOOST_AUTO_TEST_CASE(test_dumpToFile) { } if (line != nullptr) { - /* getline() allocates a buffer then called with a nullptr, + /* getline() allocates a buffer when called with a nullptr, then reallocates it when needed, but we need to free the last allocation if any. */ free(line); -- 2.50.1