--- libev/ev.c 2010/10/24 19:15:52 1.362 +++ libev/ev.c 2010/10/24 19:38:20 1.363 @@ -1738,6 +1738,10 @@ { int i; + /* mimic free (0) */ + if (!EV_A) + return; + #if EV_CLEANUP_ENABLE /* queue cleanup watchers (and execute them) */ if (expect_false (cleanupcnt))