Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Achim Morschhauser
GeomagLogger
Commits
79763b83
Commit
79763b83
authored
Apr 19, 2021
by
Thomas Edwards
Browse files
Previous commit introduced potential memory leak. Cleaned up with new version.
parent
81fe3e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Filter_Obs.cpp
View file @
79763b83
...
...
@@ -501,8 +501,16 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in,
if
(
tofilter1
.
size
()
>
que_limit
)
{
std
::
cerr
<<
"[!!!] WARNING! Que limit has been reached! Restarting filter!"
<<
std
::
endl
;
// remove all data in ques
for
(
int
ix
=
0
;
ix
<
tofilter1
.
size
();
ix
++
)
{
delete
(
tofilter1
[
ix
]);
}
tofilter1
.
clear
();
for
(
int
ix
=
0
;
ix
<
tofilter2
.
size
();
ix
++
)
{
delete
(
tofilter2
[
ix
]);
}
tofilter2
.
clear
();
// break from loop to trigger a restart
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment