Skip to content

Commit

Permalink
Fixed iceoryx crash (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Vargovcik authored and eboasson committed Mar 14, 2023
1 parent 18142df commit 54c6b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ddsc/src/dds_data_allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ dds_return_t dds_data_allocator_free (dds_data_allocator_t *data_allocator, void
case DDS_IOX_ALLOCATOR_KIND_SUBSCRIBER:
if (ptr != NULL) {
ddsrt_mutex_lock(&d->mutex);
shm_lock_iox_sub(d->ref.sub);
iox_sub_release_chunk(d->ref.sub, ptr);
shm_unlock_iox_sub(d->ref.sub);
ddsrt_mutex_unlock(&d->mutex);
}
break;
Expand Down

0 comments on commit 54c6b9f

Please sign in to comment.