diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2014-04-25 19:59:48 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-04-25 19:59:48 +0200 |
commit | ff98d7ff5847e07a55b0c40c2ccc3bc430226ca0 (patch) | |
tree | 76091599ff8e851321c1ec1c9d6434439e6e605a | |
parent | debd185b4108a2a17f18221150bb260aa0be4121 (diff) | |
download | screen-ff98d7ff5847e07a55b0c40c2ccc3bc430226ca0.tar.gz |
those 0 assignment made rest of code totally not working
Inspired by checking bug #41167
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r-- | src/resize.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resize.c b/src/resize.c index 362fc9a..8c107da 100644 --- a/src/resize.c +++ b/src/resize.c @@ -923,7 +923,6 @@ int wi, he, hi; free((char *)p->w_hlines); p->w_hlines = nhlines; #endif - nmlines = nhlines = 0; /* change tabs */ if (p->w_width != wi) @@ -951,6 +950,10 @@ int wi, he, hi; } KillWindow(p); Msg(0, "%s", strnomem); + if (nmlines) + free(nmlines); + if (nhlines) + free(nhlines); return -1; } for (; t < wi; t++) |