This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/main by this push:
     new 83a0b5e50 PROTON-2873: Correctly finalize declared disposition
83a0b5e50 is described below

commit 83a0b5e50ea15ffa0026d5c8af786d8b8604d080
Author: Andrew Stitcher <astitc...@apache.org>
AuthorDate: Wed Jun 11 10:27:16 2025 -0400

    PROTON-2873: Correctly finalize declared disposition
    
    Leak found by oss fuzz in the previous commit.
---
 c/src/core/engine.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/c/src/core/engine.c b/c/src/core/engine.c
index 7d16a01e8..f6e7d7fd4 100644
--- a/c/src/core/engine.c
+++ b/c/src/core/engine.c
@@ -1602,6 +1602,9 @@ static void pn_disposition_finalize(pn_disposition_t *ds)
       pn_bytes_free(ds->u.s_transactional.id);
       pn_bytes_free(ds->u.s_transactional.outcome_raw);
       break;
+    case PN_DISP_DECLARED:
+      pn_bytes_free(ds->u.s_declared.id);
+      break;
   }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to