summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-12-04 23:46:17 +0000
committerLaurent Bercot <ska@appnovation.com>2021-12-04 23:46:17 +0000
commite50cd28603074a73c3f5d39613fd06b8d79191f9 (patch)
tree7992bf08ee8198655f8cfbb3b2d90efd96ed9f5f
parentb275def9ef46e9d6ff4373b2116dc6bc3bf5c4dc (diff)
downloads6-dns-e50cd28603074a73c3f5d39613fd06b8d79191f9.tar.xz
bugfix: alloc_free correct value
*All* my memory bugs come from places where I'm not using stralloc. That should give a hint to every C programmer out there. Really. Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/skadns/skadns_end.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/skadns/skadns_end.c b/src/skadns/skadns_end.c
index 60ae9c9..afcab58 100644
--- a/src/skadns/skadns_end.c
+++ b/src/skadns/skadns_end.c
@@ -10,7 +10,7 @@
static int skadnsanswer_free (char *p, void *stuff)
{
skadnsanswer_t *q = (skadnsanswer_t_ref)p ;
- alloc_free(&q->data) ;
+ alloc_free(q->data) ;
(void)stuff ;
return 1 ;
}