Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix three allocation related compiler warnings #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/si5351.cpp
Expand Up @@ -565,7 +565,7 @@ void Si5351::set_pll(uint64_t pll_freq, enum si5351_pll target_pll)
pllb_freq = pll_freq;
}

delete params;
delete[] params;
}

/*
Expand Down Expand Up @@ -672,7 +672,7 @@ void Si5351::set_ms(enum si5351_clock clk, struct Si5351RegSet ms_reg, uint8_t i
break;
}

delete params;
delete[] params;
}

/*
Expand Down Expand Up @@ -1240,7 +1240,7 @@ void Si5351::set_vcxo(uint64_t pll_freq, uint8_t ppm)
// Write the parameters
si5351_write_bulk(SI5351_PLLB_PARAMETERS, i, params);

delete params;
delete[] params;

// Write the VCXO parameters
vcxo_param = ((vcxo_param * ppm * SI5351_VCXO_MARGIN) / 100ULL) / 1000000ULL;
Expand Down