diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-18 18:00:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-18 18:00:14 +0000 |
commit | c861f9e411378530adfd36b51a3c307aa98062da (patch) | |
tree | 85fe73128f85a29882c37b2e461fe45c5f9e0195 /sbin | |
parent | 73f563164bc999c0b74c0061f6c455ae40959b70 (diff) |
fix early free (subtle); marius@monkey.org
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/modload/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/elf.c b/sbin/modload/elf.c index 648a76695f1..00d8b4e33b6 100644 --- a/sbin/modload/elf.c +++ b/sbin/modload/elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf.c,v 1.5 2003/07/21 03:55:35 tedu Exp $ */ +/* $OpenBSD: elf.c,v 1.6 2003/09/18 18:00:13 deraadt Exp $ */ /* $NetBSD: elf.c,v 1.8 2002/01/03 21:45:58 jdolecek Exp $ */ /* @@ -285,10 +285,10 @@ elf_mod_sizes(int fd, size_t *modsize, int *strtablen, /* XXX round to pagesize? */ *modsize = roundup(off, sysconf(_SC_PAGESIZE)); - free(shstrtab); /* get string table length */ strtab = read_string_table(fd, head, strtablen); + free(shstrtab); free(strtab); /* get symbol table sections */ |