From: Remi Gacogne Date: Mon, 28 May 2018 16:10:05 +0000 (+0200) Subject: rec: Fix a typo in one comment of the negative cache unit tests X-Git-Tag: dnsdist-1.3.1~62^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6687%2Fhead;p=thirdparty%2Fpdns.git rec: Fix a typo in one comment of the negative cache unit tests --- diff --git a/pdns/recursordist/test-negcache_cc.cc b/pdns/recursordist/test-negcache_cc.cc index 2431794657..f5ddec76b9 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);