Skip to content

Commit

Permalink
free_display_handle(): fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Sep 22, 2024
1 parent badf131 commit a92b58e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/displays.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ void free_display_handle(Display_Handle * dh) {
if (dh && memcmp(dh->marker, DISPLAY_HANDLE_MARKER, 4) == 0) {
dh->marker[3] = 'x';
free(dh->repr);
free(dh->repr_p);
free(dh);
}
DBGTRC_DONE(debug, DDCA_TRC_BASE, "");
Expand Down

0 comments on commit a92b58e

Please sign in to comment.