summaryrefslogtreecommitdiffstats
path: root/pcilib/bank.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/bank.c')
-rw-r--r--pcilib/bank.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/bank.c b/pcilib/bank.c
index dbbb427..3d53db2 100644
--- a/pcilib/bank.c
+++ b/pcilib/bank.c
@@ -65,7 +65,7 @@ void pcilib_free_register_banks(pcilib_t *ctx) {
if (ctx->bank_ctx[i]) {
if (bapi->free)
- bapi->free(ctx->bank_ctx[i]);
+ bapi->free(ctx, ctx->bank_ctx[i]);
else
free(ctx->bank_ctx[i]);