From 201d885cf454e026cf59e18961f025bcfa8a3142 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 25 Jul 2024 08:14:23 +0200 Subject: Merging upstream version 4.3+20240723. Signed-off-by: Daniel Baumann --- Query.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Query.c') diff --git a/Query.c b/Query.c index adcd231..aedb4ce 100644 --- a/Query.c +++ b/Query.c @@ -39,7 +39,7 @@ int Query(char *dev) struct mdinfo info; struct mdinfo *sra; struct supertype *st = NULL; - unsigned long long larray_size; + unsigned long long larray_size = 0; struct stat stb; char *mddev; mdu_disk_info_t disc; @@ -136,5 +136,7 @@ int Query(char *dev) if (st->ss == &super0) put_md_name(mddev); } + free(sra); + return 0; } -- cgit v1.2.3