aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adiv5.c')
-rw-r--r--src/adiv5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adiv5.c b/src/adiv5.c
index 04a9b88..0adc97b 100644
--- a/src/adiv5.c
+++ b/src/adiv5.c
@@ -69,6 +69,8 @@ void adiv5_ap_unref(ADIv5_AP_t *ap)
{
if (--(ap->refcnt) == 0) {
adiv5_dp_unref(ap->dp);
+ if (ap->priv)
+ ap->priv_free(ap->priv);
free(ap);
}
}