Merge pull request #4105 from paul-elliott-arm/fix_test_leak
Fix for memory leak in ssl tests
This commit is contained in:
commit
5d332f0274
1 changed files with 8 additions and 4 deletions
|
@ -1354,7 +1354,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
|
|||
t_in->taglen = 8;
|
||||
break;
|
||||
default:
|
||||
return( 1 );
|
||||
ret = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -1374,7 +1375,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
|
|||
t_in->taglen = 8;
|
||||
break;
|
||||
default:
|
||||
return( 1 );
|
||||
ret = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -1395,11 +1397,13 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
|
|||
t_in->maclen = 10;
|
||||
break;
|
||||
default:
|
||||
return( 1 );
|
||||
ret = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return( 1 );
|
||||
ret = 1;
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue