Skip to content

Commit

Permalink
testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pako-23 committed Sep 10, 2024
1 parent 35b7753 commit d79560d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
os: [macos-14, ubuntu-24.04]
os: [ubuntu-24.04]
compiler_suite: [clang, gcc]

steps:
Expand Down
6 changes: 3 additions & 3 deletions ex/memory_checks_cpp/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d79560d

Please sign in to comment.