From 557655ee1d918579a40f0684cced80aa0390045c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Oct 2017 01:14:27 +0200 Subject: [PATCH] fix(lib): drop(self) after delete() call --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 51d901ec8..ad0ead59e 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(()) }