diff options
author | 2001-07-02 19:19:49 +0000 | |
---|---|---|
committer | 2001-07-02 19:19:49 +0000 | |
commit | 66b03caf4f284264383c3d7abf3d8ee39b187c67 (patch) | |
tree | 1762a11245429cefda2a4e5d95c73441d58ff28b | |
parent | fix memory leak (diff) | |
download | wireguard-openbsd-66b03caf4f284264383c3d7abf3d8ee39b187c67.tar.xz wireguard-openbsd-66b03caf4f284264383c3d7abf3d8ee39b187c67.zip |
another memory leak
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index d7327444372..3e27052b301 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.94 2001/07/02 19:18:40 provos Exp $ */ +/* $OpenBSD: pf.c,v 1.95 2001/07/02 19:19:49 provos Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -1280,8 +1280,10 @@ pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code) if (mtag == NULL) return; m0 = m_copy(m, 0, M_COPYALL); - if (m0 == NULL) + if (m0 == NULL) { + m_tag_free(mtag); return; + } m_tag_prepend(m0, mtag); icmp_error(m0, type, code, 0, 0); } |