… | … | ||
---|---|---|---|
93 | void * | 93 | void * |
94 | rxvt_temp_buf (int len) | 94 | rxvt_temp_buf (int len) |
95 | { | 95 | { |
96 | if (len > temp_len) | 96 | if (len > temp_len) |
97 | { | 97 | { |
98 | free (temp_buf); | ||
99 | temp_buf = malloc (len); | 98 | temp_buf = realloc (temp_buf, len); |
100 | temp_len = len; | 99 | temp_len = len; |
101 | } | 100 | } |
102 | 101 | ||
103 | return temp_buf; | 102 | return temp_buf; |
104 | } | 103 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |