Internal gcrypt: fix memory leak

Fix: ef99eb67
This commit is contained in:
Nardi Ivan
2022-08-30 11:12:00 +02:00
committed by Toni
parent ef99eb674e
commit 79653f99e0
+6 -5
View File
@@ -76,13 +76,14 @@ int mbedtls_aesni_has_support( unsigned int what )
int found = 0;
while(getline(&line, &len, fd) != -1) {
if(strstr(line, "aes")) {
/* printf("FOUND %s", line); */
found = 1;
break;
}
if(strstr(line, "aes")) {
/* printf("FOUND %s", line); */
found = 1;
break;
}
}
free(line);
fclose(fd);
return(found);
}