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:
dillon 2002-06-10 21:15:50 +00:00
parent cd25d4648f
commit 46d8228e36
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. */