Skip to contentSkip to conversation

master - functional-tests/vdo: fix mem leak in test

PATCH Joe Thornber 1 participant 1 message May 10, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3c0f5bdd089e5990c4d57ea7bee5e6d9a24d5d54
Commit:        3c0f5bdd089e5990c4d57ea7bee5e6d9a24d5d54
Parent:        ae5037481172da84d414ca047408d9fb13955886
Author:        Joe Thornber <[email protected]>
AuthorDate:    Thu May 10 14:31:16 2018 +0100
Committer:     Joe Thornber <[email protected]>
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(-)
test/unit/vdo_t.c +1 -0
index aaa4d9c..21ecd1a 100644
@@ -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);
         }
 }