Message ID | 20190220175152.25667-1-lukasz.plewa@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d01b41356f35cf24fb4c4b532e278d407d429af4 |
Headers | show |
Series | [1/1] ndctl: fix memory leak in libndctl | expand |
diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index c9e2875..6de5463 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -518,6 +518,7 @@ static void __free_pfn(struct ndctl_pfn *pfn, struct list_head *head, void *to_f free(pfn->pfn_path); free(pfn->pfn_buf); free(pfn->bdev); + free(pfn->alignments.supported); free(to_free); }