diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-10-15T23·14+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-10-15T23·14+0200 |
commit | 557655ee1d918579a40f0684cced80aa0390045c (patch) | |
tree | b932748770dc53dd943f7262ab2d9007e697a936 /src | |
parent | d6fa62a96847ab447622cbd3db123e58dc320d5a (diff) |
fix(lib): drop(self) after delete() call
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 1 |
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(()) } |