T tracer tools: fix memory leaks, clang warnings

- Fix memory leaks detected by ASan
- Initialize variables that are flagged by compiler
- C struct initializer: x:y needs to be .x=y
This commit is contained in:
Cedric Roux
2023-07-13 10:29:33 +02:00
committed by Robert Schmidt
parent 5a98ead92b
commit 8a2a5015e6
6 changed files with 51 additions and 12 deletions
+1
View File
@@ -3,6 +3,7 @@
/* returns an opaque pointer - truly a 'database *', see database.c */
void *parse_database(char *filename);
void free_database(void *database);
void dump_database(void *database);
void list_ids(void *database);
void list_groups(void *database);