Skip to content

Commit

Permalink
6167 libshare_nfs: Possible memory leak in configlog()
Browse files Browse the repository at this point in the history
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
  • Loading branch information
mtelka authored and rmustacc committed Aug 31, 2015
1 parent 68271d9 commit 822e638
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions usr/src/lib/libshare/nfs/libshare_nfs.c
Expand Up @@ -20,8 +20,8 @@
*/

/*
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/

/*
Expand Down Expand Up @@ -894,10 +894,8 @@ configlog(struct exportdata *exp, char *tag)

err:
if (error != 0) {
if (exp->ex_flags != NULL)
free(exp->ex_tag);
if (exp->ex_log_buffer != NULL)
free(exp->ex_log_buffer);
free(exp->ex_tag);
free(exp->ex_log_buffer);
(void) fprintf(stderr,
dgettext(TEXT_DOMAIN, "Cannot set log configuration: %s\n"),
strerror(error));
Expand Down

0 comments on commit 822e638

Please sign in to comment.