Print this page
6659 nvlist_free(NULL) is a no-op

@@ -1694,15 +1694,13 @@
                         freestr(line);
                         return (1);
                 }
                 if (expand_macros(ev, nvlist, sep, line, hdr)) {
                         freestr(line);
-                        if (nvlist)
                                 nvlist_free(nvlist);
                         return (1);
                 }
-                if (nvlist)
                         nvlist_free(nvlist);
         }
 
         if (debug_level >= DBG_EXEC) {
                 syseventd_print(DBG_EXEC, "%s, line %d: path = %s\n",