Print this page
10124 smatch fixes for cryptoadm

@@ -20,10 +20,13 @@
  */
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
 
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>

@@ -1300,11 +1303,10 @@
                             == FAILURE) {
                                 cryptoerror(LOG_ERR,
                                     "failed to retrieve the providers' "
                                     "information from file kcf.conf - %s.",
                                     _PATH_KCF_CONF);
-                                free(psoftlist_kernel);
                                 rc = FAILURE;
                         } else {
 
                                 for (i = 0,
                                     psoftname = psoftlist_kernel->sl_soft_names;