File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
components/TARGET_PSA/services/crypto/COMPONENT_SPE Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -641,6 +641,7 @@ static void psa_asymmetric_operation(void)
641
641
642
642
psa_write (msg .handle , 1 ,
643
643
& signature_length , sizeof (signature_length ));
644
+ mbedtls_free (hash );
644
645
mbedtls_free (signature );
645
646
break ;
646
647
}
@@ -663,6 +664,7 @@ static void psa_asymmetric_operation(void)
663
664
hash = mbedtls_calloc (1 , msg .in_size [2 ]);
664
665
if (hash == NULL ) {
665
666
status = PSA_ERROR_INSUFFICIENT_MEMORY ;
667
+ mbedtls_free (signature );
666
668
break ;
667
669
}
668
670
@@ -1636,6 +1638,8 @@ void psa_crypto_generator_operations(void)
1636
1638
label ,
1637
1639
msg .in_size [2 ],//label length
1638
1640
psa_crypto_ipc .capacity );
1641
+ mbedtls_free (label );
1642
+ mbedtls_free (salt );
1639
1643
1640
1644
break ;
1641
1645
}
@@ -1665,7 +1669,7 @@ void psa_crypto_generator_operations(void)
1665
1669
private_key ,
1666
1670
msg .in_size [1 ],//private_key length
1667
1671
psa_crypto_ipc .alg );
1668
-
1672
+ mbedtls_free ( private_key );
1669
1673
break ;
1670
1674
}
1671
1675
You can’t perform that action at this time.
0 commit comments