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
5a0f1503fc
commit
a92c883bf1
@ -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…
x
Reference in New Issue
Block a user