Fixed a memory leak when writing through the epicsadapter

This commit is contained in:
2015-02-04 14:18:57 +01:00
parent 1cf0e3351a
commit a793526a8e

View File

@ -384,6 +384,7 @@ static void EpicsWriteFunc(void *param)
SCDeleteConnection(wp->pCon); SCDeleteConnection(wp->pCon);
ReleaseHdbValue(&wp->v); ReleaseHdbValue(&wp->v);
free(wp); free(wp);
free(pv);
ca_clear_channel(cid); ca_clear_channel(cid);
ca_context_destroy(); ca_context_destroy();
} }