Merge pull request #4105 from paul-elliott-arm/fix_test_leak

Fix for memory leak in ssl tests
This commit is contained in:
Gilles Peskine 2021-02-09 10:03:49 +01:00 committed by GitHub
commit 5d332f0274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1354,7 +1354,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
t_in->taglen = 8; t_in->taglen = 8;
break; break;
default: default:
return( 1 ); ret = 1;
goto cleanup;
} }
break; break;
@ -1374,7 +1375,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
t_in->taglen = 8; t_in->taglen = 8;
break; break;
default: default:
return( 1 ); ret = 1;
goto cleanup;
} }
break; break;
@ -1395,11 +1397,13 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
t_in->maclen = 10; t_in->maclen = 10;
break; break;
default: default:
return( 1 ); ret = 1;
goto cleanup;
} }
break; break;
default: default:
return( 1 ); ret = 1;
goto cleanup;
break; break;
} }