Fixed some memory leaks in namesys/dns and path/path

This commit is contained in:
Jose Marcial Vieira Bisneto 2016-11-29 08:26:05 -03:00
parent 74a5afe169
commit 47e035e29f
2 changed files with 9 additions and 8 deletions

View file

@ -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;
}