diff --git a/zfs.go b/zfs.go index 0dfc44c..af3f32d 100644 --- a/zfs.go +++ b/zfs.go @@ -385,6 +385,7 @@ func (d *Dataset) SetProperty(p Prop, value string) (err error) { C.free(unsafe.Pointer(csValue)) if errcode != 0 { err = LastError() + return } // Update Properties member with change made if _, err = d.GetProperty(p); err != nil {