[ https://issues.apache.org/jira/browse/PROTON-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979592#comment-16979592 ]
ASF GitHub Bot commented on PROTON-2140: ---------------------------------------- astitcher commented on pull request #213: PROTON-2140: Lazy creation of various link related objects URL: https://github.com/apache/qpid-proton/pull/213#discussion_r349298718 ########## File path: c/src/core/engine.c ########## @@ -2299,7 +2314,11 @@ int pn_condition_copy(pn_condition_t *dest, pn_condition_t *src) { assert(src); int err = 0; if (src != dest) { + if (src->name == NULL) src->name = pn_string(NULL); Review comment: FWIW `pn_string_copy()` will cope correctly with NULL `src->name` string (but not NULL `dest->name`). Perhaps if src is NULL and if dest is not NULL the `dest->name` should be freed? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > proton-c has very high memory footprint for links > ------------------------------------------------- > > Key: PROTON-2140 > URL: https://issues.apache.org/jira/browse/PROTON-2140 > Project: Qpid Proton > Issue Type: Improvement > Reporter: Gordon Sim > Priority: Major > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org