summaryrefslogtreecommitdiffstats
path: root/runtime/transport/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/transport/symbols.c')
-rw-r--r--runtime/transport/symbols.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/transport/symbols.c b/runtime/transport/symbols.c
index ee5e967e..9780b0b1 100644
--- a/runtime/transport/symbols.c
+++ b/runtime/transport/symbols.c
@@ -1,7 +1,7 @@
/* -*- linux-c -*-
* symbols.c - stp symbol and module functions
*
- * Copyright (C) Red Hat Inc, 2006
+ * Copyright (C) Red Hat Inc, 2006, 2007
*
* This file is part of systemtap, and is free software. You can
* redistribute it and/or modify it under the terms of the GNU General
@@ -110,6 +110,9 @@ static void _stp_del_module(struct _stp_module *mod)
// kbug("deleting %s\n", mod->name);
+ /* signal relocation code to clear its cache */
+ _stp_module_relocate((char *)-1, NULL, 0);
+
/* remove module from the arrays */
for (num = 0; num < _stp_num_modules; num++) {
if (_stp_modules[num] == mod)