1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-21 23:33:21 +00:00

Prevent NPE

This commit is contained in:
M66B 2023-11-30 14:39:31 +01:00
parent 68dd66decd
commit f3dfa30f1b

View file

@ -275,10 +275,11 @@ void *handle_events(void *a) {
log_android(ANDROID_LOG_ERROR,
"epoll close error %d: %s", errno, strerror(errno));
log_android(ANDROID_LOG_WARN, "Stopped events tun=%d", args->tun);
// Cleanup
ng_free(args, __FILE__, __LINE__);
log_android(ANDROID_LOG_WARN, "Stopped events tun=%d", args->tun);
return NULL;
}