Fixed memory leaks in namesys and path.
This commit is contained in:
parent
e69f10a68f
commit
84f24797f4
7 changed files with 70 additions and 38 deletions
|
@ -4,6 +4,7 @@
|
|||
#ifdef IPFS_PATH_C
|
||||
char *ErrPath[] = {
|
||||
NULL,
|
||||
"ErrAllocFailed",
|
||||
// ErrBadPath is returned when a given path is incorrectly formatted
|
||||
"invalid 'ipfs ref' path",
|
||||
// Paths after a protocol must contain at least one component
|
||||
|
@ -17,7 +18,8 @@
|
|||
#endif // IPFS_PATH_C
|
||||
|
||||
enum {
|
||||
ErrBadPath = 1,
|
||||
ErrAllocFailed = 1,
|
||||
ErrBadPath,
|
||||
ErrNoComponents,
|
||||
ErrCidDecode,
|
||||
ErrNoLink,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue