aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5.c
diff options
context:
space:
mode:
authorGareth McMullin2012-07-05 21:26:26 +1200
committerGareth McMullin2012-07-05 21:26:26 +1200
commit0433d3d12a2c07c4685e5c42dc6c7e8420defe42 (patch)
tree69e3b755cca686443603acc8f7bda206854c70b8 /src/adiv5.c
parent0c379744e9585eb41739dc45d45be34f83f5b713 (diff)
cortexm: Moved all static data to the heap.
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);
}
}