Fix user-space loop events memory leakage

Change-Id: I55f98bca2e7778e86c3a8de759bbb00560cf0c04
Signed-off-by: Or Kehati <ork@mellanox.com>