Correct a bug in the last commit. The whole point of creating a 'done:'

goto target was so the cache could be freed.  So free the cache after
done: rather then before done: (!)

Submitted by:	Gavin Atkinson <gavin@ury.york.ac.uk>
This commit is contained in:
Matthew Dillon 2002-06-10 21:15:50 +00:00
parent f76fcf6d4c
commit b08440e568
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98103
2 changed files with 6 additions and 6 deletions

View File

@ -211,11 +211,11 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld)
goto done;
}
}
r = 0;
done:
if (cache)
munmap(cache, bytes);
r = 0;
done:
return(r);
return(r);
}
/* Process the PLT relocations. */

View File

@ -211,11 +211,11 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld)
goto done;
}
}
r = 0;
done:
if (cache)
munmap(cache, bytes);
r = 0;
done:
return(r);
return(r);
}
/* Process the PLT relocations. */