From 7898783c116a87d7073ac9586ca2d0a42be00e82 Mon Sep 17 00:00:00 2001 From: stepski011 Date: Tue, 2 Apr 2024 14:37:01 +0200 Subject: [PATCH] fixed memory free --- src/5gmsaf/service-access-information.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/5gmsaf/service-access-information.c b/src/5gmsaf/service-access-information.c index 58a1d8f..f4c26b4 100644 --- a/src/5gmsaf/service-access-information.c +++ b/src/5gmsaf/service-access-information.c @@ -178,7 +178,7 @@ msaf_context_service_access_information_create(msaf_provisioning_session_t *prov char *scheme = msaf_strdup(metrics_config->config->scheme); if (!scheme || strlen(scheme) == 0) { - free(scheme); + if (scheme) ogs_free(scheme); scheme = msaf_strdup("urn:3GPP:ns:PSS:DASH:QM10"); }