]> gitweb.factorcode.org Git - factor.git/commitdiff
benchmark.udp-echo0: Fix the memory leak.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 12 Nov 2011 01:58:45 +0000 (17:58 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 12 Nov 2011 01:58:45 +0000 (17:58 -0800)
extra/benchmark/udp-echo0/udp-echo0.factor

index 8417e5bce3d3ad420bd0506e118ab2160f6a6f60..23898a977a7daa512d75591c78e1a441bc445c82 100644 (file)
@@ -12,8 +12,8 @@ IN: benchmark.udp-echo0
 : udp-echo ( #times #bytes -- )
     '[
         _ iota [ _ >be ] map
-        "127.0.0.1" 0 <inet4> <datagram>
-        "127.0.0.1" 0 <inet4> <datagram>
+        "127.0.0.1" 0 <inet4> <datagram> &dispose
+        "127.0.0.1" 0 <inet4> <datagram> &dispose
         [ send/recv ] 2curry each
     ] with-destructors ;