Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 16:18:48 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364998 - head/contrib/ofed/infiniband-diags/src
Message-ID:  <202008311618.07VGIm90041643@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Mon Aug 31 16:18:48 2020
New Revision: 364998
URL: https://svnweb.freebsd.org/changeset/base/364998

Log:
  infiniband-diags: Fix memory leak in dump_multicast_tables
  
  Coverity detected leak.
  
  Submitted by:	bret_ketchum@dell.com
  Reported by:	Coverity
  Reviewed by:	hselasky, kib
  MFC after:	2 weeks
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D26228

Modified:
  head/contrib/ofed/infiniband-diags/src/ibroute.c

Modified: head/contrib/ofed/infiniband-diags/src/ibroute.c
==============================================================================
--- head/contrib/ofed/infiniband-diags/src/ibroute.c	Mon Aug 31 16:17:28 2020	(r364997)
+++ head/contrib/ofed/infiniband-diags/src/ibroute.c	Mon Aug 31 16:18:48 2020	(r364998)
@@ -222,6 +222,7 @@ char *dump_multicast_tables(ib_portid_t * portid, unsi
 				fprintf(stderr, "SubnGet() failed"
 						"; MAD status 0x%x AM 0x%x\n",
 						status, mod);
+				free(mapnd);
 				return NULL;
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008311618.07VGIm90041643>