From: ayin Date: Mon, 27 Aug 2007 21:30:50 +0000 (+0000) Subject: Use realloc rather than free+malloc. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=952d182755e497a762eeec0423b04818d8b85ced;p=dana%2Furxvt.git Use realloc rather than free+malloc. --- diff --git a/src/rxvtutil.C b/src/rxvtutil.C index a977783b..739848da 100644 --- a/src/rxvtutil.C +++ b/src/rxvtutil.C @@ -1,4 +1,4 @@ -/*--------------------------------*-C-*---------------------------------* +/*----------------------------------------------------------------------* * File: rxvtutil.C *----------------------------------------------------------------------* * @@ -95,8 +95,7 @@ rxvt_temp_buf (int len) { if (len > temp_len) { - free (temp_buf); - temp_buf = malloc (len); + temp_buf = realloc (temp_buf, len); temp_len = len; }