[compiler-rt] r176947 - [msan] Clean up extensions during msandr shutdown
Reid Kleckner
reid at kleckner.net
Wed Mar 13 06:59:09 PDT 2013
Author: rnk
Date: Wed Mar 13 08:59:09 2013
New Revision: 176947
URL: http://llvm.org/viewvc/llvm-project?rev=176947&view=rev
Log:
[msan] Clean up extensions during msandr shutdown
Otherwise debug DynamoRIO complains at us for leaking memory.
Modified:
compiler-rt/trunk/lib/msandr/msandr.cc
Modified: compiler-rt/trunk/lib/msandr/msandr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msandr/msandr.cc?rev=176947&r1=176946&r2=176947&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msandr/msandr.cc (original)
+++ compiler-rt/trunk/lib/msandr/msandr.cc Wed Mar 13 08:59:09 2013
@@ -511,6 +511,11 @@ void event_module_unload(void *drcontext
}
void event_exit() {
+ // Clean up so DR doesn't tell us we're leaking memory.
+ drsys_exit();
+ drutil_exit();
+ drmgr_exit();
+
if (VERBOSITY > 0)
dr_printf("==DRMSAN== DONE\n");
}
More information about the llvm-commits
mailing list