at work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user