From e6a1cebf1aacba8458fe987e873a65f4a8762e38 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 14 Jun 2010 21:01:13 +0000 Subject: [PATCH] Eliminate dead code. Found by: Coverity Prevent CID: 5158 MFC after: 3 days --- sbin/hastd/hast_proto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbin/hastd/hast_proto.c b/sbin/hastd/hast_proto.c index 348dfc887bb1..4e898ca12e09 100644 --- a/sbin/hastd/hast_proto.c +++ b/sbin/hastd/hast_proto.c @@ -329,9 +329,7 @@ hast_proto_recv_hdr(struct proto_conn *conn, struct nv **nvp) *nvp = nv; return (0); fail: - if (nv != NULL) - nv_free(nv); - else if (eb != NULL) + if (eb != NULL) ebuf_free(eb); return (-1); }