diff --git a/client/src/proxguiqt.cpp b/client/src/proxguiqt.cpp index b84a950dc..b0cf3076d 100644 --- a/client/src/proxguiqt.cpp +++ b/client/src/proxguiqt.cpp @@ -843,6 +843,7 @@ void Plot::drawAnnotations(QRect annotationRect, QPainter *painter) { char *textA = (char *)calloc(1, length); if (textA == NULL) { + free(annotation); return; }