From 557655ee1d918579a40f0684cced80aa0390045c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Oct 2017 01:14:27 +0200 Subject: fix(lib): drop(self) after delete() call --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 51d901ec86df..ad0ead59e53a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,6 +181,7 @@ impl Queue { /// other processes, too! pub fn delete(self) -> Result<(), Error> { mqueue::mq_unlink(&self.name.0)?; + drop(self); Ok(()) } -- cgit 1.4.1