diff options
author | Moritz Luedecke <ritze@skweez.net> | 2017-08-28 18:03:24 +0200 |
---|---|---|
committer | Moritz Luedecke <ritze@skweez.net> | 2017-08-28 18:03:24 +0200 |
commit | f5de98070f9e07307094aa81f973469ddd926d47 (patch) | |
tree | bf1531d33d3bc664d841f6e831966e9120d1f636 /pinentry-dmenu.c | |
parent | 22bc570658fef47656497143346aaa57273878c5 (diff) |
Fix memory leak
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r-- | pinentry-dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index e127650..8ed5fa0 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -212,7 +212,6 @@ drawwin(void) { leftinput = mw - x - pbw; drw_text(drw, x, 0, leftinput, bh, lrpad / 2, censort, 0); drw_font_getexts(drw->fonts, censort, cursor * asterlen, &curpos, NULL); - free(censort); if ((curpos += lrpad / 2 - 1) < leftinput) { drw_setscheme(drw, scheme[SchemeNormal]); @@ -224,6 +223,7 @@ drawwin(void) { x = drawitem("Yes", (sel == Yes), x, 0, TEXTW("Yes")); } + free(censort); drw_map(drw, win, 0, 0, mw, mh); } |