1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

c2: fix a memory leak in unittest

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-06-04 01:29:02 +01:00
parent 8dcf23f290
commit ba3093a913
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -541,6 +541,7 @@ TEST_CASE(c2_parse) {
cond = c2_parse(NULL, "_NET_WM_STATE = '_NET_WM_STATE_HIDDEN'", NULL);
TEST_NOTEQUAL(cond, NULL);
c2_list_free(&cond, NULL);
cond = c2_parse(NULL, "1A:\n1111111111111ar1", NULL);
TEST_EQUAL(cond, NULL);