diff options
author | peter <peter@FreeBSD.org> | 1997-09-20 02:29:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-09-20 02:29:56 +0000 |
commit | e28110371d10d8786ddcae7b35258ab24617fa8d (patch) | |
tree | 6a79f445e0d8c8c54163c1bca85cf6d774dc0d9d /sys/dev/de | |
parent | e62fb2bfcb26305b5ab42729fcea05723ca1c92f (diff) | |
download | FreeBSD-src-e28110371d10d8786ddcae7b35258ab24617fa8d.zip FreeBSD-src-e28110371d10d8786ddcae7b35258ab24617fa8d.tar.gz |
``oops''. I cut/pasted the original free()'s based on mark's suggestion
rather than extracting the diff from Mark's patch, but it turns out that
I was freeing one allocation twice due to a previous cut/paste braino.
My botch, not Mark's.
Pointed out by: Mark Valentine <mv@pobox.com>
Diffstat (limited to 'sys/dev/de')
-rw-r--r-- | sys/dev/de/if_de.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index c2342e3..7a8d3da 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_de.c,v 1.68 1997/09/11 15:27:34 peter Exp $ + * $Id: if_de.c,v 1.69 1997/09/18 08:28:23 peter Exp $ * */ @@ -5057,8 +5057,8 @@ tulip_pci_attach( if (sc->tulip_rxdescs == NULL || sc->tulip_txdescs == NULL) { if (sc->tulip_rxdescs) free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); - if (sc->tulip_rxdescs) - free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); + if (sc->tulip_txdescs) + free((caddr_t) sc->tulip_txdescs, M_DEVBUF); free((caddr_t) sc, M_DEVBUF); return; } @@ -5126,7 +5126,7 @@ tulip_pci_attach( #endif if (!retval) { free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); - free((caddr_t) sc->tulip_rxdescs, M_DEVBUF); + free((caddr_t) sc->tulip_txdescs, M_DEVBUF); free((caddr_t) sc, M_DEVBUF); return; } |