This commit is contained in:
Олег Бородин
2023-09-05 11:30:10 +02:00
parent 77bd507ae8
commit e9b9df0356
15 changed files with 423 additions and 562 deletions

View File

@@ -5,6 +5,10 @@
*/
#ifdef __linux__
#define _GNU_SOURCE
#endif
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -195,8 +199,10 @@ void jblock_destroy(jblock_t* jb) {
}
free(jb->kvarr[i].key);
}
jb->kvsize = 0;
jb->kvcapa = 0;
free(jb->kvarr);
jb->kvarr = NULL;
}