]> granicus.if.org Git - zfs/commitdiff
Illumos 3897 - zfs filesystem and snapshot limits (fix leak)
authorAlex Reece <alex.reece@delphix.com>
Wed, 1 Apr 2015 13:10:21 +0000 (00:10 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Apr 2015 23:23:14 +0000 (16:23 -0700)
3897 zfs filesystem and snapshot limits (fix leak)
Author: Alex Reece <alex.reece@delphix.com>
Approved by: Christopher Siden <christopher.siden@delphix.com>

References:
  https://www.illumos.org/issues/3897
  https://github.com/illumos/illumos-gate/commit/fb7001f

Ported-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/dsl_dir.c

index 86b40657c575c9d78ba496fb46c1f8884d4f37e3..3e6b7a018ee00e1f7630f0a5b7b27f5502b9b86a 100644 (file)
@@ -550,6 +550,7 @@ dsl_dir_init_fs_ss_count(dsl_dir_t *dd, dmu_tx_t *tx)
                if (za->za_name[0] != '%')
                        my_ss_cnt++;
        }
+       zap_cursor_fini(zc);
 
        dsl_dataset_rele(ds, FTAG);