Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 6f1817d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -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;
}

Expand Down
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6f1817d

Please sign in to comment.