This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/cap_req_model_lib
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/cap_req_model_lib by 
this push:
     new ad53378a Fix memleak in celix_rcm_err.c
ad53378a is described below

commit ad53378a7899ec1d797bd3e2e4e22cc982460c64
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sun Apr 9 17:31:07 2023 +0200

    Fix memleak in celix_rcm_err.c
---
 libs/rcm/src/celix_rcm_err.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/rcm/src/celix_rcm_err.c b/libs/rcm/src/celix_rcm_err.c
index 13fce808..731883ad 100644
--- a/libs/rcm/src/celix_rcm_err.c
+++ b/libs/rcm/src/celix_rcm_err.c
@@ -85,6 +85,7 @@ static void celix_rcm_pushMsg(char* msg) {
         errors = celix_arrayList_create();
         if (errors == NULL) {
             fprintf(stderr, "Failed to create error list for Apache Celix rcm 
lib\n");
+            free(msg);
             return;
         }
         pthread_setspecific(celix_rcm_tssErrorsKey, errors);

Reply via email to