Skip to content

Commit

Permalink
allocators/dedup: Cleanup debugging mess
Browse files Browse the repository at this point in the history
Clean-up debugging mess.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
  • Loading branch information
pantoniou committed Jul 23, 2024
1 parent 067c941 commit 220dee8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/allocator/fy-allocator-dedup.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "fy-allocator-dedup.h"

#define DEBUG_GROWS
// #define DEBUG_GROWS

#undef BEFORE
#define BEFORE() \
Expand Down Expand Up @@ -499,11 +499,12 @@ static void fy_dedup_cleanup(struct fy_allocator *a)

da = container_of(a, struct fy_dedup_allocator, a);

for (i = 0, dt = da->tags; i < ARRAY_SIZE(da->tags); i++, dt++)
fy_dedup_tag_cleanup(da, dt);

if (da->entries_allocator)
fy_allocator_destroy(da->entries_allocator);

for (i = 0, dt = da->tags; i < ARRAY_SIZE(da->tags); i++, dt++)
fy_dedup_tag_cleanup(da, dt);
}

struct fy_allocator *fy_dedup_create(const void *cfg)
Expand Down

0 comments on commit 220dee8

Please sign in to comment.