cleanup if event add fails

This commit is contained in:
Jeff Hill
2000-09-14 00:25:58 +00:00
parent fbb50928ce
commit 8f2a5171c9

View File

@@ -394,6 +394,9 @@ int epicsShareAPI ca_add_masked_array_event ( chtype type, unsigned long count,
*monixptr = pSubsr;
}
}
else {
pSubsr->destroy ();
}
return status;
}