Prevent NPE

This commit is contained in:
M66B 2023-11-30 14:39:31 +01:00
parent 68dd66decd
commit f3dfa30f1b
1 changed files with 2 additions and 1 deletions

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;
}