Free buffer in case of unknown error - avoids memory leak
This commit is contained in:
parent
4014b066d1
commit
14499aa822
|
@ -629,8 +629,10 @@ char *rktio_get_current_directory(rktio_t *rktio)
|
|||
} else
|
||||
break;
|
||||
}
|
||||
if (!r)
|
||||
if (!r) {
|
||||
free(s);
|
||||
get_posix_error();
|
||||
}
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user