Skip to content

Commit

Permalink
Fixed memory leak. When TCP session is finished, memory which holds
Browse files Browse the repository at this point in the history
tcp information is not freed.
  • Loading branch information
fujisawa committed Oct 29, 2000
1 parent 83f3097 commit ccd7ca1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions kame/sys/netinet6/natpt_dispatch.c
@@ -1,4 +1,4 @@
/* $KAME: natpt_dispatch.c,v 1.14 2000/10/17 14:23:55 fujisawa Exp $ */
/* $KAME: natpt_dispatch.c,v 1.15 2000/10/29 11:48:35 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -116,7 +116,7 @@ struct _tSlot *lookForFragmented __P((struct _cv *, int));
#endif

#if defined(__FreeBSD__) && __FreeBSD__ >= 3
static MALLOC_DEFINE(M_NATPT, "NATPT", "Network Address Translation - Protocol Translation");
MALLOC_DEFINE(M_NATPT, "NATPT", "Network Address Translation - Protocol Translation");
#endif


Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/natpt_list.h
@@ -1,4 +1,4 @@
/* $KAME: natpt_list.h,v 1.6 2000/04/06 08:30:47 sumikawa Exp $ */
/* $KAME: natpt_list.h,v 1.7 2000/10/29 11:48:35 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -70,7 +70,7 @@ static Cell *_getEmptyCell __P((void));

#ifdef _KERNEL
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
static MALLOC_DEFINE(M_NATPT, "NATPT", "Network Address Translation - Protocol Translation");
MALLOC_DECLARE(M_NATPT);
#endif /* defined(__FreeBSD__) && __FreeBSD__ >= 3 */
#endif /* defined(_KERNEL) */

Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/natpt_trans.c
@@ -1,4 +1,4 @@
/* $KAME: natpt_trans.c,v 1.18 2000/10/17 14:23:55 fujisawa Exp $ */
/* $KAME: natpt_trans.c,v 1.19 2000/10/29 11:48:35 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -125,7 +125,7 @@ static int adjustChecksum __P((int, u_char *, int, u_char *, int));


#if defined(__FreeBSD__) && __FreeBSD__ >= 3
static MALLOC_DEFINE(M_NATPT, "NATPT", "Network Address Translation - Protocol Translation");
MALLOC_DECLARE(M_NATPT);
#endif


Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet6/natpt_tslot.c
@@ -1,4 +1,4 @@
/* $KAME: natpt_tslot.c,v 1.12 2000/10/17 14:23:56 fujisawa Exp $ */
/* $KAME: natpt_tslot.c,v 1.13 2000/10/29 11:48:35 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -117,7 +117,7 @@ static int _hash_pjw __P((u_char *, int));


#if defined(__FreeBSD__) && __FreeBSD__ >= 3
static MALLOC_DEFINE(M_NATPT, "NATPT", "Network Address Translation - Protocol Translation");
MALLOC_DECLARE(M_NATPT);
#endif


Expand Down

0 comments on commit ccd7ca1

Please sign in to comment.