More work on storage and cleanup

Added flatfs, as well as fixed some memory leaks. Valgrind across tests
now reports 0 memory leaks.
This commit is contained in:
John Jones 2016-11-28 08:09:00 -05:00
parent 63c7bd72e2
commit 50ffade515
28 changed files with 580 additions and 93 deletions

View file

@ -60,7 +60,7 @@ int do_init(FILE* out_file, char* repo_root, int empty, int num_bits_for_keypair
if (fs_repo_is_initialized(repo_root))
return 0;
//TODO: If the conf is null, make one
if ( conf->identity.peer_id == NULL) {
if ( conf->identity->peer_id == NULL) {
int retVal = repo_config_init(conf, num_bits_for_keypair, repo_root);
if (retVal == 0)
return 0;