From cb1d06b442f9cb718a5f1944ec0ca34f0d3cad4f Mon Sep 17 00:00:00 2001 From: Marcel Jordense Date: Tue, 7 Apr 2020 11:01:53 +0200 Subject: [PATCH] Freeing the writer security attributes should be done by the gc Signed-off-by: Marcel Jordense --- src/core/ddsi/src/q_entity.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/ddsi/src/q_entity.c b/src/core/ddsi/src/q_entity.c index 569fb01..826124f 100644 --- a/src/core/ddsi/src/q_entity.c +++ b/src/core/ddsi/src/q_entity.c @@ -4052,9 +4052,7 @@ dds_return_t delete_writer_nolinger (struct ddsi_domaingv *gv, const struct ddsi return DDS_RETCODE_BAD_PARAMETER; } GVLOGDISC ("delete_writer_nolinger(guid "PGUIDFMT") ...\n", PGUID (*guid)); -#ifdef DDSI_INCLUDE_SECURITY - q_omg_security_deregister_writer(wr); -#endif + ddsrt_mutex_lock (&wr->e.lock); delete_writer_nolinger_locked (wr); ddsrt_mutex_unlock (&wr->e.lock);