Skip to content

Commit

Permalink
local: Fix double-free of context pdata
Browse files Browse the repository at this point in the history
The context pdata structure is already freed in iio_context_destroy().

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jan 12, 2024
1 parent c661ed2 commit 7b973b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion local.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ static void local_shutdown(struct iio_context *ctx)

if (ctx->pdata && ctx->pdata->lock)
iio_mutex_destroy(ctx->pdata->lock);
free(ctx->pdata);
}

/** Shrinks the first nb characters of a string
Expand Down

0 comments on commit 7b973b5

Please sign in to comment.