Skip to content
Permalink
Browse files
Fix memory leaks in psa, reported by CI.
  • Loading branch information
PengZheng committed Mar 21, 2022
1 parent 3b651da commit debaeefae2d4c05d8a191e8f98bae34b51f8802f
Show file tree
Hide file tree
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 debaeef

Please sign in to comment.