about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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(())
     }