diff options
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 677ea222c3d..9193c2586c6 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -4023,7 +4023,6 @@ INTERCEPTOR(int, fflush, __sanitizer_FILE *fp) { INTERCEPTOR(int, fclose, __sanitizer_FILE *fp) { void *ctx; COMMON_INTERCEPTOR_ENTER(ctx, fclose, fp); - int res = REAL(fclose)(fp); if (fp) { COMMON_INTERCEPTOR_FILE_CLOSE(ctx, fp); const FileMetadata *m = GetInterceptorMetadata(fp); @@ -4032,7 +4031,7 @@ INTERCEPTOR(int, fclose, __sanitizer_FILE *fp) { DeleteInterceptorMetadata(fp); } } - return res; + return REAL(fclose)(fp); } #define INIT_FCLOSE COMMON_INTERCEPT_FUNCTION(fclose); #else |