File 13000-2978930-bnc593168-Reduce-memory-leak-in-slp-operation.patch of Package sblim-sfcb-sle11-sp1

From cca6e390c700632a14c9d98bd95f9fecac61ff6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Fri, 9 Apr 2010 15:52:43 +0200
Subject: [PATCH 1/2] Reduce memory leak in slp operation (upstream ID 2978930)

The cimslp extension of sfcbd is a separate process, communicating
with the main CIMOM via sfcc + SfcbLocal interface. The latter
leaks memory massively (~ 4MB per SLP refresh).

This change uses the "http" (xml based) interface. Its slower than the
local interface but with SLP refresh intervals of 10 minutes
(default), speed isn't the issue here.

Note that even with the "http" interface, there's still a small leak
(~ 16k per SLP refresh).
---
 cimslpCMPI.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cimslpCMPI.c b/cimslpCMPI.c
index 870be64..006ad28 100644
--- a/cimslpCMPI.c
+++ b/cimslpCMPI.c
@@ -163,7 +163,7 @@ cimSLPService getSLPData(cimomConfig cfg)
         memset(&rs, 0, sizeof(cimSLPService));
 
         cc = cmciConnect2(cfg.cimhost,
-                                        "SfcbLocal",
+                                        "http", /* "SfcbLocal" leaks memory */
                                         cfg.port,
                                         cfg.cimuser,
                                         cfg.cimpassword,
-- 
1.6.4.2

openSUSE Build Service is sponsored by