Fix memory leak in xapp-frame-py get_constants()
Xapp-frame-py get_constants() function calls c-code RMR library's
rmr_get_consts() function what allocates dynamic memory with strdup
call and returns allocated string to the caller in this case to
python's get_constants() via ctypes interface. This memory should be
freed, otherwise it causes memory leak. With this commit update RMR
version to 4.8.0 what has rmr_free_consts() function and call this
function in the end of get_constants() function to release allocated
memory.
Note that from now on it is required to have RMR version 4.8.0 or
newer version installed because rmr_free_consts() function was
introduced first time in RMR version 4.8.0. That's why bump
xapp-frame-py major version, new version is 3.0.0.
Temporally out scoped few unit test files because some change in
RMR version 4.5.2 causes UT failure. UTs will be fixed later.
Issue-Id: RIC-858
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ia4a134c5140760b1a1d6016da1e6763fec865c7a
diff --git a/Dockerfile-Unit-Test b/Dockerfile-Unit-Test
index 3366096..1a95f51 100644
--- a/Dockerfile-Unit-Test
+++ b/Dockerfile-Unit-Test
@@ -21,7 +21,7 @@
apt-get install -y \
wget gcc musl-dev
-ARG rmr_version=4.1.2
+ARG rmr_version=4.8.0
ARG e2ap_version=1.1.0
# download rmr and e2ap libraries from package cloud
@@ -41,7 +41,7 @@
FROM python:3.8-slim
-ARG rmr_version=4.1.2
+ARG rmr_version=4.8.0
ARG e2ap_version=1.1.0
COPY --from=stretch /usr/local/lib/librmr_si.so.${rmr_version} /usr/local/lib/librmr_si.so