celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix git commit: Fixes a memory leak in the pubsub_utils
Date Tue, 20 Mar 2018 09:58:01 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 2e20c6d5c -> 3dac5aae0


Fixes a memory leak in the pubsub_utils


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/3dac5aae
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/3dac5aae
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/3dac5aae

Branch: refs/heads/develop
Commit: 3dac5aae058a3d042c64b8fe7278dc5139ac3af7
Parents: 2e20c6d
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Tue Mar 20 10:57:49 2018 +0100
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Tue Mar 20 10:57:49 2018 +0100

----------------------------------------------------------------------
 pubsub/pubsub_spi/src/pubsub_utils.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/3dac5aae/pubsub/pubsub_spi/src/pubsub_utils.c
----------------------------------------------------------------------
diff --git a/pubsub/pubsub_spi/src/pubsub_utils.c b/pubsub/pubsub_spi/src/pubsub_utils.c
index daf4e9f..5978ec7 100644
--- a/pubsub/pubsub_spi/src/pubsub_utils.c
+++ b/pubsub/pubsub_spi/src/pubsub_utils.c
@@ -68,6 +68,7 @@ celix_status_t pubsub_getPubSubInfoFromFilter(const char* filterstr, const
char
 			}
 		}
 	}
+	filter_destroy(filter);
 
 	if (topic != NULL && objectClass != NULL && strncmp(objectClass, PUBSUB_PUBLISHER_SERVICE_NAME,
128) == 0) {
 		*topicOut = topic;


Mime
View raw message