Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions LAPACKE/src/lapacke_dtrsen.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ lapack_int API_SUFFIX(LAPACKE_dtrsen)( int matrix_layout, char job, char compq,
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
} else {
iwork = (lapack_int*)LAPACKE_malloc( sizeof(lapack_int) );
if( iwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
}
work = (double*)LAPACKE_malloc( sizeof(double) * lwork );
if( work == NULL ) {
Expand Down
6 changes: 6 additions & 0 deletions LAPACKE/src/lapacke_strsen.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ lapack_int API_SUFFIX(LAPACKE_strsen)( int matrix_layout, char job, char compq,
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
} else {
iwork = (lapack_int*)LAPACKE_malloc( sizeof(lapack_int) );
if( iwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
}
work = (float*)LAPACKE_malloc( sizeof(float) * lwork );
if( work == NULL ) {
Expand Down