All of lore.kernel.org
 help / color / mirror / Atom feed
* master - functional-tests/vdo: fix mem leak in test
@ 2018-05-10 13:33 Joe Thornber
  0 siblings, 0 replies; only message in thread
From: Joe Thornber @ 2018-05-10 13:33 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3c0f5bdd089e5990c4d57ea7bee5e6d9a24d5d54
Commit:        3c0f5bdd089e5990c4d57ea7bee5e6d9a24d5d54
Parent:        ae5037481172da84d414ca047408d9fb13955886
Author:        Joe Thornber <ejt@redhat.com>
AuthorDate:    Thu May 10 14:31:16 2018 +0100
Committer:     Joe Thornber <ejt@redhat.com>
CommitterDate: Thu May 10 14:31:16 2018 +0100

functional-tests/vdo: fix mem leak in test

---
 test/unit/vdo_t.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/test/unit/vdo_t.c b/test/unit/vdo_t.c
index aaa4d9c..21ecd1a 100644
--- a/test/unit/vdo_t.c
+++ b/test/unit/vdo_t.c
@@ -100,6 +100,7 @@ static void _check_good(struct example_good *es, unsigned count)
                 fprintf(stderr, "\n");
 #endif
                 T_ASSERT(_status_eq(&e->status, pr.status));
+                free(pr.status);
         }
 }
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-10 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 13:33 master - functional-tests/vdo: fix mem leak in test Joe Thornber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.