diff --git a/site_ansto/ansto_tclmotdriv.c b/site_ansto/ansto_tclmotdriv.c index c485fc76..753a58f3 100644 --- a/site_ansto/ansto_tclmotdriv.c +++ b/site_ansto/ansto_tclmotdriv.c @@ -397,26 +397,25 @@ static int TclSetPar(void *self, SConnection * pCon, char *name, if (result == NULL) { pDriv->errorCode = NOTCLRESULT; free(tclCommand); - free(tclCommandPara);; + free(tclCommandPara); return HWFault; } if (status != TCL_OK) { pDriv->errorCode = TCLERROR; strncpy(pDriv->tclError, result, 1023); free(tclCommand); - free(tclCommandPara);; + free(tclCommandPara); return HWFault; } else { snprintf(pBuffer, 511, "%s.%s = %s", pDriv->motName, name, result); SCWrite(pCon, pBuffer, eValue); } free(tclCommand); - free(tclCommandPara);; + free(tclCommandPara); return OKOK; } else { pDriv->errorCode = PARANOTFOUND; free(tclCommand); - free(tclCommandPara);; return 0; }