Fix memory leaks

This commit is contained in:
Patrick Georgi
2025-12-14 11:54:14 +01:00
parent ae767ed3dc
commit b86eff35f0
4 changed files with 31 additions and 31 deletions

View File

@@ -95,6 +95,7 @@ text_string = (char *)calloc (1, sizeof (char));
if (xmstring) {
if (!XmStringInitContext (&context, xmstring)) {
printf("Can't convert compound string.\n");
free(text_string);
return (NULL);
}
while (XmStringGetNextSegment (context, &temp, &charset,