Message ID | 20150905013158.28464.65681.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 380a277b02f2 |
Headers | show |
diff --git a/lib/libndctl.c b/lib/libndctl.c index d85453a3ac63..5de7359f1cc5 100644 --- a/lib/libndctl.c +++ b/lib/libndctl.c @@ -584,6 +584,7 @@ static void free_bus(struct ndctl_bus *bus) list_del_from(&bus->dimms, &dimm->list); free(dimm->dimm_path); free(dimm->dimm_buf); + kmod_module_unref(dimm->module); free(dimm); } list_for_each_safe(&bus->regions, region, _r, list)