[PATCH 2/4] nodeDeviceEventSubmit: Fix memory leak