diff --git a/file_io/win32/readwrite.c b/file_io/win32/readwrite.c index 66cdee604f..cbec2d50cf 100644 --- a/file_io/win32/readwrite.c +++ b/file_io/win32/readwrite.c @@ -470,6 +470,7 @@ APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, a } rc = apr_file_seek(thefile, APR_END, &offset); if (rc != APR_SUCCESS) { + apr_file_unlock(thefile); if (thefile->flags & APR_FOPEN_XTHREAD) { apr_thread_mutex_unlock(thefile->mutex); }