Subject: Re: -current memory leaks?
To: None <bill@twwells.com>
From: Charles M. Hannum <mycroft@ai.mit.edu>
List: current-users
Date: 04/12/1995 22:03:30
We already covered that, and I fixed the leak. Here's a diff:
Index: raw_ip.c
===================================================================
RCS file: /a/cvsroot/src/sys/netinet/raw_ip.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -c -2 -r1.14 -r1.15
*** raw_ip.c 1994/06/29 06:38:31 1.14
--- raw_ip.c 1995/01/12 06:23:45 1.15
***************
*** 1,3 ****
! /* $NetBSD: raw_ip.c,v 1.14 1994/06/29 06:38:31 cgd Exp $ */
/*
--- 1,3 ----
! /* $NetBSD: raw_ip.c,v 1.15 1995/01/12 06:23:45 mycroft Exp $ */
/*
***************
*** 183,188 ****
register int error;
! if (level != IPPROTO_IP)
return (EINVAL);
switch (optname) {
--- 183,191 ----
register int error;
! if (level != IPPROTO_IP) {
! if (m != 0 && *m != 0)
! (void)m_free(*m);
return (EINVAL);
+ }
switch (optname) {