Skip to content

Commit

Permalink
fix(libscap): fix scap_kmod build with HANDLE() macro
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra authored and poiana committed Aug 19, 2024
1 parent 18de8ce commit df21b63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userspace/libscap/engine/kmod/scap_kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ int32_t scap_kmod_close(struct scap_engine_handle engine)

devset_free(devset);

if(engine.m_handle->m_stats)
if(HANDLE(engine)->m_stats)
{
free(engine.m_handle->m_stats);
engine.m_handle->m_stats = NULL;
free(HANDLE(engine)->m_stats);
HANDLE(engine)->m_stats = NULL;
}
return SCAP_SUCCESS;
}
Expand Down

0 comments on commit df21b63

Please sign in to comment.