From 29d55245572a5e53ba8b3d529926453d493fd1e3 Mon Sep 17 00:00:00 2001 From: Jerry Jelinek Date: Wed, 23 Sep 2015 21:07:14 +0000 Subject: [PATCH] 6276 libidmap leaks due to a missed goto Reviewed by: Jason King Reviewed by: Alexander Pyhalov Reviewed by: Toomas Soome Reviewed by: Marcel Telka Approved by: Dan McDonald --- usr/src/lib/libidmap/common/idmap_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/lib/libidmap/common/idmap_api.c b/usr/src/lib/libidmap/common/idmap_api.c index 315c01a73c..ddfefc39c2 100644 --- a/usr/src/lib/libidmap/common/idmap_api.c +++ b/usr/src/lib/libidmap/common/idmap_api.c @@ -22,6 +22,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright Milan Jurik 2012. All rights reserved. * Copyright 2014 Nexenta Systems, Inc. All rights reserved. + * Copyright 2015 Joyent, Inc. */ @@ -1653,7 +1654,7 @@ idmap_get_w2u_mapping( TIMEOUT); if (retcode != IDMAP_SUCCESS) - return (retcode); + goto out; retcode = result.retcode; -- 2.11.4.GIT