summaryrefslogtreecommitdiffstats
path: root/runtime/modules.h
diff options
context:
space:
mode:
authorBojan Smojver <bojan@rexursive.com>2011-03-04 07:55:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-04 07:55:53 +0100
commit87f8ac6dc4343eb4664ca5e234c163c399afca1b (patch)
treeabd1301e50e80dd6f6ca0cfafa276e3450372fd7 /runtime/modules.h
parentd1eb6e0edc51a78f3209448e800b25eda50340f2 (diff)
downloadrsyslog-87f8ac6dc4343eb4664ca5e234c163c399afca1b.tar.gz
rsyslog-87f8ac6dc4343eb4664ca5e234c163c399afca1b.tar.xz
rsyslog-87f8ac6dc4343eb4664ca5e234c163c399afca1b.zip
bugfix: regression: memory leak in module loader
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'runtime/modules.h')
-rw-r--r--runtime/modules.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/modules.h b/runtime/modules.h
index 7eff8581..4daaf1f9 100644
--- a/runtime/modules.h
+++ b/runtime/modules.h
@@ -77,9 +77,9 @@ typedef enum eModLinkType_ {
/* remember which shared libs we dlopen()-ed */
struct dlhandle_s {
- uchar szName[PATH_MAX];
- void *pModHdlr;
- struct dlhandle_s *next;
+ uchar *pszName;
+ void *pModHdlr;
+ struct dlhandle_s *next;
};
/* should this module be kept linked? */