mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
The fix in r327273 turns a memory leak into freeing wild pointer.
Fix this by freeing only the initialized pointer.
This commit is contained in:
parent
b6d439667a
commit
5a8ad265c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327335
@ -565,8 +565,10 @@ CMDFUNCSTART(findblk)
|
||||
end:
|
||||
curinum = ocurrent;
|
||||
curinode = ginode(curinum);
|
||||
free(wantedblk32);
|
||||
free(wantedblk64);
|
||||
if (is_ufs2)
|
||||
free(wantedblk64);
|
||||
else
|
||||
free(wantedblk32);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user