[w32handle] Zero out the handle specific data in the handle dtor to help debugging...
authorZoltan Varga <vargaz@gmail.com>
Tue, 27 Jun 2017 22:05:34 +0000 (18:05 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2017 22:05:34 +0000 (18:05 -0400)
mono/metadata/w32handle.c

index f6862a9a7dba737452b39cb840286b84d52883c1..fe589e64516d06d816e0aa072296093e164c75c1 100644 (file)
@@ -683,6 +683,8 @@ w32handle_destroy (gpointer handle)
                close_func (handle, handle_specific);
        }
 
+       memset (handle_specific, 0, mono_w32handle_ops_typesize (type));
+
        g_free (handle_specific);
 }