winpr: fix error path in winpr_event_init (#6974)

This commit is contained in:
David Fort 2021-04-22 11:57:44 +02:00 committed by GitHub
parent 5e3e2cd9fd
commit db02de2d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ BOOL winpr_event_init(WINPR_EVENT_IMPL* event)
return TRUE;
out_error:
winpr_event_uninit(&event);
winpr_event_uninit(event);
return FALSE;
#endif
}