mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
xfree is not particularly helpful, remove it. From Thomas Adam.
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "tmux.h"
|
||||
@ -102,8 +103,8 @@ screen_write_cstrlen(int utf8flag, const char *fmt, ...)
|
||||
|
||||
size = screen_write_strlen(utf8flag, "%s", msg2);
|
||||
|
||||
xfree(msg);
|
||||
xfree(msg2);
|
||||
free(msg);
|
||||
free(msg2);
|
||||
|
||||
return (size);
|
||||
}
|
||||
@ -141,7 +142,7 @@ screen_write_strlen(int utf8flag, const char *fmt, ...)
|
||||
}
|
||||
}
|
||||
|
||||
xfree(msg);
|
||||
free(msg);
|
||||
return (size);
|
||||
}
|
||||
|
||||
@ -215,7 +216,7 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
|
||||
}
|
||||
}
|
||||
|
||||
xfree(msg);
|
||||
free(msg);
|
||||
}
|
||||
|
||||
/* Write string, similar to nputs, but with embedded formatting (#[]). */
|
||||
@ -285,7 +286,7 @@ screen_write_cnputs(struct screen_write_ctx *ctx,
|
||||
}
|
||||
}
|
||||
|
||||
xfree(msg);
|
||||
free(msg);
|
||||
}
|
||||
|
||||
/* Parse an embedded style of the form "fg=colour,bg=colour,bright,...". */
|
||||
|
Reference in New Issue
Block a user