Ack freom me.

/AndersBj 

-----Original Message-----
From: Zoran Milinkovic [mailto:[email protected]] 
Sent: den 13 mars 2015 23:56
To: [email protected]
Cc: [email protected]
Subject: [devel] [PATCH 1 of 1] imm: fix memory leak in search init [#1265]

 osaf/services/saf/immsv/immnd/immnd_evt.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Fix memory leak in search init

diff --git a/osaf/services/saf/immsv/immnd/immnd_evt.c 
b/osaf/services/saf/immsv/immnd/immnd_evt.c
--- a/osaf/services/saf/immsv/immnd/immnd_evt.c
+++ b/osaf/services/saf/immsv/immnd/immnd_evt.c
@@ -358,7 +358,8 @@ uint32_t immnd_evt_destroy(IMMSV_EVT *ev
                evt->info.immnd.info.searchInit.rootName.buf = NULL;
                evt->info.immnd.info.searchInit.rootName.size = 0;
 
-               if (evt->info.immnd.info.searchInit.searchParam.present == 
ImmOmSearchParameter_PR_oneAttrParam) {
+               if (evt->info.immnd.info.searchInit.searchParam.present == 
ImmOmSearchParameter_PR_oneAttrParam
+                               || 
evt->info.immnd.info.searchInit.searchParam.present == 
+ImmOmSearchParameter_PR_nonExtendedName_oneAttrParam) {
                        
free(evt->info.immnd.info.searchInit.searchParam.choice.oneAttrParam.attrName.buf);
                        
evt->info.immnd.info.searchInit.searchParam.choice.oneAttrParam.attrName.buf = 
NULL;
                        
evt->info.immnd.info.searchInit.searchParam.choice.oneAttrParam.attrName.size = 
0;

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to