Skip to content

Commit

Permalink
fix: memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
neriumrevolta committed Jan 21, 2024
1 parent 306343f commit f59be25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions install-golang.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if [ $(uname -m) = "aarch64" ]; then
wget https://golang.org/dl/go1.19.5.linux-arm64.tar.gz &&
tar -C /usr/local -xzf go1.19.5.linux-arm64.tar.gz
wget https://golang.org/dl/go1.20.13.linux-arm64.tar.gz &&
tar -C /usr/local -xzf go1.20.13.linux-arm64.tar.gz
else
wget https://golang.org/dl/go1.19.5.linux-amd64.tar.gz &&
tar -C /usr/local -xzf go1.19.5.linux-amd64.tar.gz
wget https://golang.org/dl/go1.20.13.linux-amd64.tar.gz &&
tar -C /usr/local -xzf go1.20.13.linux-amd64.tar.gz
fi
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 f59be25

Please sign in to comment.