Skip to content

Commit

Permalink
fix: memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-eiger committed Jan 21, 2024
1 parent 306343f commit 6fe20d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub struct ProcessManager {

impl Drop for ProcessManager {
fn drop(&mut self) {
let _ = self.senders.get(0).unwrap().lock().unwrap().kill();
let _ = self.senders.first().unwrap().lock().unwrap().kill();
let _ = self.radio.lock().unwrap().kill();
}
}
Expand Down

0 comments on commit 6fe20d7

Please sign in to comment.