projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac51a39
)
perl plugin: Fixed a memory leak in pplugin_dispatch_notification().
author
Sebastian Harl
<sh@tokkee.org>
Mon, 16 Feb 2009 10:53:02 +0000
(11:53 +0100)
committer
Sebastian Harl
<sh@tokkee.org>
Mon, 16 Feb 2009 14:22:04 +0000
(15:22 +0100)
Free the notification meta information that have possibly been allocated in
notification2hv().
src/perl.c
patch
|
blob
|
history
diff --git
a/src/perl.c
b/src/perl.c
index
d7087d1
..
efb8bdd
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-914,6
+914,8
@@
static int pplugin_dispatch_notification (pTHX_ HV *notif)
{
notification_t n;
+ int ret;
+
if (NULL == notif)
return -1;
@@
-922,7
+924,9
@@
static int pplugin_dispatch_notification (pTHX_ HV *notif)
if (0 != hv2notification (aTHX_ notif, &n))
return -1;
- return plugin_dispatch_notification (&n);
+ ret = plugin_dispatch_notification (&n);
+ plugin_notification_meta_free (&n);
+ return ret;
} /* static int pplugin_dispatch_notification (HV *) */
/*