]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
redis: fix allocator mismatch if Valkey is built with jemalloc on Ubuntu
authorDaniel Salzman <daniel.salzman@nic.cz>
Tue, 12 May 2026 08:45:59 +0000 (10:45 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sat, 16 May 2026 18:03:34 +0000 (20:03 +0200)
src/redis/libs.h

index c6ef6ea45c791ecbf3ce02d9875be5cc933758de..de95455dbda17a8a5bc077c687a8ce1999baecf0 100644 (file)
 #include "libknot/rrtype/soa.h"
 #include "libzscanner/error.c"
 #include "libzscanner/functions.c"
+
+#define strdup RedisModule_Strdup
+#define malloc RedisModule_Alloc
+#define free RedisModule_Free
 #include "libzscanner/scanner.c.t0"
+#undef strdup
+#undef malloc
+#undef free
 
 // Add a dummy symbol for unused but called function in rrset-dump.c.
 int dnssec_keytag(const dnssec_binary_t *rdata, uint16_t *keytag)