Fix leak when inserting p2p message in WHC fails
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
02ed74e6bd
commit
58e02d0b12
1 changed files with 4 additions and 0 deletions
|
@ -1212,6 +1212,10 @@ int write_sample_p2p_wrlock_held(struct writer *wr, seqno_t seq, struct ddsi_pli
|
||||||
if (wr->heartbeat_xevent)
|
if (wr->heartbeat_xevent)
|
||||||
writer_hbcontrol_note_asyncwrite(wr, tnow);
|
writer_hbcontrol_note_asyncwrite(wr, tnow);
|
||||||
}
|
}
|
||||||
|
else if (gap)
|
||||||
|
{
|
||||||
|
nn_xmsg_free (gap);
|
||||||
|
}
|
||||||
|
|
||||||
prd_is_deleting:
|
prd_is_deleting:
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue