Skip to content
Permalink
Browse files
Merge pull request #403 from apache/hotfix/psa_memory_leak
Fix memory leaks in psa, reported by CI.
  • Loading branch information
PengZheng committed Mar 22, 2022
2 parents c83bc07 + debaeef commit 6f1817d5ce14b61cfcb20369ce4fff1f93cba36d
Showing 2 changed files with 2 additions and 0 deletions.
@@ -368,6 +368,7 @@ psa_tcp_topicPublicationSend(void *handle, unsigned int msgTypeId, const void *i
if (status != CELIX_SUCCESS) {
L_WARN("Cannot find serializer for msg id %u for serializer %s", msgTypeId,
pubsub_serializerHandler_getSerializationType(sender->serializerHandler));
celix_properties_destroy(metadata);
return status;
}

@@ -330,6 +330,7 @@ static int psa_udpmc_topicPublicationSend(void* handle, unsigned int msgTypeId,
printf("[PSA_UDPMC/TopicSender] No msg serializer available for msg type id %d\n", msgTypeId);
status = -1;
}
celix_properties_destroy(metadata);
return status;
}

0 comments on commit 6f1817d

Please sign in to comment.