Blame SOURCES/hdparm-9.54-resourceleak-fixes-2.patch

68dae8
diff -up hdparm-9.54/hdparm.c.bak hdparm-9.54/hdparm.c
68dae8
--- hdparm-9.54/hdparm.c.bak	2020-06-01 17:56:47.257520643 +0200
68dae8
+++ hdparm-9.54/hdparm.c	2020-06-01 17:57:29.285084217 +0200
68dae8
@@ -461,12 +461,15 @@ static void dump_identity (__u16 *idw)
68dae8
 {
68dae8
 	int i;
68dae8
 	char pmodes[64] = {0,}, dmodes[128]={0,}, umodes[128]={0,};
68dae8
-	char *model = strip(strndup((char *)&idw[27], 40));
68dae8
-	char *fwrev = strip(strndup((char *)&idw[23],  8));
68dae8
-	char *serno = strip(strndup((char *)&idw[10], 20));
68dae8
+	char *model = strndup((char *)&idw[27], 40);
68dae8
+	char *model_s = strip(model);
68dae8
+	char *fwrev = strndup((char *)&idw[23],  8);
68dae8
+	char *fwrev_s = strip(fwrev);
68dae8
+	char *serno = strndup((char *)&idw[10], 20);
68dae8
+	char *serno_s = strip(serno);
68dae8
 	__u8 tPIO;
68dae8
 
68dae8
-	printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model, fwrev, serno);
68dae8
+	printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model_s, fwrev_s, serno_s);
68dae8
 	printf("\n Config={");
68dae8
 	for (i = 0; i <= 15; i++) {
68dae8
 		if (idw[0] & (1<