diff --git a/cli/filelister.cpp b/cli/filelister.cpp index 11ce4021f..4ce7a1b07 100644 --- a/cli/filelister.cpp +++ b/cli/filelister.cpp @@ -241,8 +241,8 @@ bool FileLister::isDirectory(const std::string &path) #include void FileLister::recursiveAddFiles2(std::vector &relative, - std::vector &absolute, - const std::string &path) + std::vector &absolute, + const std::string &path) { std::ostringstream oss; oss << path; diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 18cff9fa8..e0b8d032c 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -47,7 +47,7 @@ CheckMemoryLeakNoVar instance4; // Reference: http://www.aquaphoenix.com/ref/gnu_c_library/libc_492.html#SEC492 static const char * const call_func_white_list[] = { - "_open", "_wopen", "access", "asctime", "asctime_r", "asprintf", "assert" + "_open", "_wopen", "access", "asctime", "asctime_r", "asprintf", "assert" , "atof", "atoi", "atol", "chdir", "chmod", "chown" , "clearerr", "ctime", "ctime_r", "delete", "fchmod", "fclose", "fcntl" , "fdatasync", "feof", "ferror", "fflush", "fgetc", "fgetpos", "fgets" diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index c4a6a7947..6fb298921 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -228,9 +228,9 @@ private: TEST_CASE(func18); TEST_CASE(func19); // Ticket #2056 - if (!f(p)) return 0; TEST_CASE(func20); // Ticket #2182 - exit is not handled - TEST_CASE(func21); // Ticket #2569 - TEST_CASE(func22); // Ticket #2668 - TEST_CASE(func23); // Ticket #2667 + TEST_CASE(func21); // Ticket #2569 + TEST_CASE(func22); // Ticket #2668 + TEST_CASE(func23); // Ticket #2667 TEST_CASE(allocfunc1); TEST_CASE(allocfunc2); @@ -2081,7 +2081,7 @@ private: // # 2667 void func23() { - + // check open() function // ---------------------- check("int * foo()\n"