From 38412a6e3d81a6407fb8a7009e5c890627a04fec Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 6 Mar 2007 16:09:24 +1100 Subject: [PATCH] Fixed memory leak evident in MCSTAS simulation. r1609 | ffr | 2007-03-06 16:09:24 +1100 (Tue, 06 Mar 2007) | 2 lines --- polldriv.c | 1 + polldriv.tc | 1 + 2 files changed, 2 insertions(+) diff --git a/polldriv.c b/polldriv.c index 36959c26..fcd23df9 100644 --- a/polldriv.c +++ b/polldriv.c @@ -38,6 +38,7 @@ static int pollHdb(struct __POLLDRIV *self, SConnection *pCon){ if(!compareHdbValue(old,newVal)){ UpdateHipadabaPar(node,newVal,pCon); } + ReleaseHdbValue(&newVal); return 1; } else { return 0; diff --git a/polldriv.tc b/polldriv.tc index c0e88ceb..2337eda8 100644 --- a/polldriv.tc +++ b/polldriv.tc @@ -34,6 +34,7 @@ static int pollHdb(struct __POLLDRIV *self, SConnection *pCon){ if(!compareHdbValue(old,newVal)){ UpdateHipadabaPar(node,newVal,pCon); } + ReleaseHdbValue(&newVal); return 1; } else { return 0;