Fix some memory leaks and use-after-free (cppcheck)
This commit is contained in:
@@ -415,9 +415,12 @@ static int TclSetPar(void *self, SConnection * pCon, char *name,
|
||||
return OKOK;
|
||||
} else {
|
||||
pDriv->errorCode = PARANOTFOUND;
|
||||
free(tclCommand);
|
||||
free(tclCommandPara);;
|
||||
return 0;
|
||||
}
|
||||
|
||||
free(tclCommand);
|
||||
return OKOK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user