Fixed memory leaks
This commit is contained in:
parent
a4b6a14ea5
commit
5b7f89bdf1
14 changed files with 132 additions and 52 deletions
|
@ -19,8 +19,8 @@ struct Datastore {
|
|||
|
||||
// function pointers for datastore operations
|
||||
int (*datastore_open)(int argc, char** argv, struct Datastore* datastore);
|
||||
int (*datastore_close)(int argc, char** argv, struct Datastore* datastore);
|
||||
int (*datastore_put)(const char* key, struct Block* block, struct Datastore* datastore);
|
||||
int (*datastore_close)(struct Datastore* datastore);
|
||||
int (*datastore_put)(const char* key, size_t key_size, struct Block* block, struct Datastore* datastore);
|
||||
//int (*datastore_get)(const char* key, struct Block* block);
|
||||
// a handle to the datastore "context" used by the datastore
|
||||
void* handle;
|
||||
|
|
|
@ -25,7 +25,7 @@ int repo_fsrepro_lmdb_open(int argc, char** argv, struct Datastore* datastore);
|
|||
* @param argv parameters to be passed in
|
||||
* @param datastore the datastore struct that contains information about the opened database
|
||||
*/
|
||||
int repo_fsrepo_lmdb_close(int argc, char** argv, struct Datastore* datastore);
|
||||
int repo_fsrepo_lmdb_close(struct Datastore* datastore);
|
||||
|
||||
/***
|
||||
* Creates the directory
|
||||
|
|
2
include/ipfs/thirdparty/ipfsaddr/ipfs_addr.h
vendored
2
include/ipfs/thirdparty/ipfsaddr/ipfs_addr.h
vendored
|
@ -19,7 +19,7 @@ struct IPFSAddr {
|
|||
* @param string the string that contains the address
|
||||
* @returns true(1) on success, false(0) otherwise
|
||||
*/
|
||||
int ipfsaddr_init_new(struct IPFSAddr** addr, char* string);
|
||||
int ipfsaddr_new(struct IPFSAddr** addr, char* string);
|
||||
|
||||
/***
|
||||
* frees allocated memory in the struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue