From e55aa6e5ef60369710d8b2e6f512b2ef84a8c548 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 11 Jan 2012 21:31:36 -0800 Subject: free uniq data we encounter on the sweep, walk thru them otherwise --- src/test/run-pass/uniq-fn-leak.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test') diff --git a/src/test/run-pass/uniq-fn-leak.rs b/src/test/run-pass/uniq-fn-leak.rs index 7c9a6e7aca5..adf13c49a1e 100644 --- a/src/test/run-pass/uniq-fn-leak.rs +++ b/src/test/run-pass/uniq-fn-leak.rs @@ -6,12 +6,14 @@ type pointy = { mutable a : maybe_pointy, + c : ~int, d : sendfn()->(), }; fn empty_pointy() -> @pointy { ret @{ mutable a : none, + c : ~22, d : sendfn()->(){}, } } -- cgit 1.4.1-3-g733a5