Skip to content

Commit

Permalink
reapply; also try ts22.4.3 -> ts22.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Aug 16, 2024
1 parent 6200247 commit c5c5b0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
debug:
if: github.event_name == 'push'
runs-on: ubuntu-latest
container: ghcr.io/opencyphal/toolshed:ts22.4.3
container: ghcr.io/opencyphal/toolshed:ts22.4.8
strategy:
matrix:
toolchain: [ 'clang', 'gcc' ]
Expand Down
5 changes: 4 additions & 1 deletion libudpard/udpard.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ static inline void memFree(const struct UdpardMemoryResource memory, const size_
static inline void memFreePayload(const struct UdpardMemoryDeleter memory, const struct UdpardMutablePayload payload)
{
UDPARD_ASSERT(memory.deallocate != NULL);
memory.deallocate(memory.user_reference, payload.size, payload.data);
if (payload.data != NULL)
{
memory.deallocate(memory.user_reference, payload.size, payload.data);
}
}

static inline void memZero(const size_t size, void* const data)
Expand Down

0 comments on commit c5c5b0f

Please sign in to comment.