mirror of
https://github.com/sheumann/hush.git
synced 2025-08-07 11:26:53 +00:00
Patch from Tito to fix memory leak upon error.
This commit is contained in:
@@ -25,6 +25,7 @@ extern char *xreadlink(const char *path)
|
||||
readsize = readlink(path, buf, bufsize); /* 1st try */
|
||||
if (readsize == -1) {
|
||||
bb_perror_msg("%s", path);
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user