Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pylibbe/common/libbe_py.c
          +++ new/usr/src/lib/pylibbe/common/libbe_py.c
↓ open down ↓ 214 lines elided ↑ open up ↑
 215  215  
 216  216          if (beProps != NULL && beAttrs != NULL &&
 217  217              nvlist_add_nvlist(beAttrs, BE_ATTR_ZFS_PROPERTIES,
 218  218              beProps) != 0) {
 219  219                  nvlist_free(beProps);
 220  220                  nvlist_free(beAttrs);
 221  221                  return (Py_BuildValue("[iss]", BE_PY_ERR_NVLIST,
 222  222                      NULL, NULL));
 223  223          }
 224  224  
 225      -        if (beProps != NULL) nvlist_free(beProps);
      225 +        nvlist_free(beProps);
 226  226  
 227  227          if (trgtBeName == NULL) {
 228  228                  /*
 229  229                   * Caller wants to get back the BE_ATTR_NEW_BE_NAME and
 230  230                   * BE_ATTR_SNAP_NAME
 231  231                   */
 232  232                  if ((ret = be_copy(beAttrs)) != BE_SUCCESS) {
 233  233                          nvlist_free(beAttrs);
 234  234                          return (Py_BuildValue("[iss]", ret, NULL, NULL));
 235  235                  }
↓ open down ↓ 865 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX