Message ID | 20190130231307.5223-1-vishal.l.verma@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2a6f7e11947959350dcff10df735d616cdd9c1bb |
Headers | show |
Series | [ndctl] libndctl: fix bb iterator leak in namespaces | expand |
diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index 5eb915f..c9e2875 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -461,6 +461,7 @@ static void free_namespace(struct ndctl_namespace *ndns, struct list_head *head) free(ndns->ndns_buf); free(ndns->bdev); free(ndns->alt_name); + badblocks_iter_free(&ndns->bb_iter); kmod_module_unref(ndns->module); free(ndns); }