add missing free
This commit is contained in:
1 parent
2028a34d5e
commit
2b5f7e1d0c
1 file changed
+1
@@ -843,6 +843,7 @@ void Plot::drawAnnotations(QRect annotationRect, QPainter *painter) {
|
||||
|
||||
char *textA = (char *)calloc(1, length);
|
||||
if (textA == NULL) {
|
||||
free(annotation);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user