Skip to content

Commit

Permalink
sim/framebuffer: fix memory leak
Browse files Browse the repository at this point in the history
LeakSanitizer: detected memory leaks in XStringListToTextProperty

Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
  • Loading branch information
yanxiaowei authored and pkarashchenko committed Sep 7, 2023
1 parent ba73272 commit 5c780f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sim/src/sim/posix/sim_x11framebuffer.c
Expand Up @@ -106,6 +106,8 @@ static inline Display *sim_x11createframe(void)

XSetWMProperties(display, g_window, &winprop, &iconprop, argv, 1,
&hints, NULL, NULL);
XFree(winprop.value);
XFree(iconprop.value);

/* Select window input events */

Expand Down

0 comments on commit 5c780f6

Please sign in to comment.