Fix extraneous free() on error.
This commit is contained in:
parent
27719c46cd
commit
e345acf488
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: load_aout.c,v 1.10 1998/10/12 09:05:12 peter Exp $
|
||||
* $Id: load_aout.c,v 1.11 1998/12/22 11:41:51 abial Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -174,7 +174,6 @@ aout_loadmodule(char *filename, vm_offset_t dest, struct loaded_module **result)
|
||||
err = EIO;
|
||||
oerr:
|
||||
mod_discard(mp);
|
||||
free(mp);
|
||||
out:
|
||||
close(fd);
|
||||
return(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user