(quick_create_labeled_input): fix potential leak of memory.

/tmp/portage/app-misc/mc-9999/work/mc-9999/lib/widget/quick.c:150:9: warning: Potential leak of memory pointed to by 'label.quick_widget' [clang-analyzer-unix.Malloc]
  150 |         return;
      |         ^

Found by Clang-19 Static Analyzer.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2024-12-21 19:00:00 +00:00 committed by Andrew Borodin
parent 470b79b5aa
commit a4063fc316

View File

@ -147,6 +147,7 @@ quick_create_labeled_input (GArray *widgets, int *y, int x, quick_widget_t *quic
break;
default:
g_free (label.quick_widget);
return;
}