Skip to content

Commit

Permalink
Merge pull request #1468 from Gowa2017/fix_sdf_print_device_info
Browse files Browse the repository at this point in the history
OpenSession need a pointer of pointer
  • Loading branch information
guanzhi committed Oct 12, 2023
2 parents 435f937 + 4722f53 commit ee1b09c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sdf/sdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int sdf_print_device_info(FILE *fp, int fmt, int ind, const char *lable, SDF_DEV
void *hSession = NULL;
DEVICEINFO devInfo;

if (SDF_OpenSession(dev->handle, hSession) != SDR_OK
if (SDF_OpenSession(dev->handle, &hSession) != SDR_OK
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
error_print();
goto end;
Expand Down
2 changes: 1 addition & 1 deletion src/sdf/sdf_meth.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ SDF_METHOD *SDF_METHOD_load_library(const char *so_path)

void SDF_METHOD_free(SDF_METHOD *meth)
{
if (meth) free(meth->dso);
if (meth) dylib_close_library(meth->dso);
free(meth);
}

Expand Down

0 comments on commit ee1b09c

Please sign in to comment.