Patch from Tito to fix memory leak upon error.

This commit is contained in:
Glenn L McGrath 2004-08-11 03:50:30 +00:00
parent 73db8be80a
commit 18bbd9bf3b

View File

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