Fixed some memory leaks in namesys/dns and path/path
This commit is contained in:
parent
74a5afe169
commit
47e035e29f
2 changed files with 9 additions and 8 deletions
|
@ -43,7 +43,7 @@ char** SplitN (char *p, char *delim, int n)
|
|||
|
||||
r = calloc(sizeof(char*), n + 1); // splits plus NULL pointer termination
|
||||
if (!r) {
|
||||
free(r);
|
||||
free(rbuf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue