diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0ff53c9..897ce41 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - os: [macos-14, ubuntu-24.04] + os: [ubuntu-24.04] compiler_suite: [clang, gcc] steps: diff --git a/ex/memory_checks_cpp/array.cc b/ex/memory_checks_cpp/array.cc index 4c86fc2..60ceb44 100644 --- a/ex/memory_checks_cpp/array.cc +++ b/ex/memory_checks_cpp/array.cc @@ -124,21 +124,21 @@ void double_delete_array (void) { void non_malloc_free (void) { int a = 10; - int * p; + int * p = nullptr; if (a < 20) p = &a; std::free (p); } void non_new_delete (void) { int a = 10; - int * p; + int * p = nullptr; if (a < 20) p = &a; delete p; } void non_new_array_delete (void) { int a = 10; - int * p; + int * p = nullptr; if (a < 20) p = &a; delete[] p;