extensions/roleplay: Fix memory leak on every use.

This commit is contained in:
Jilles Tjoelker 2014-02-23 22:01:04 +01:00
parent b45b2daef9
commit a6b29d3ed4

View file

@ -138,10 +138,12 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac
struct Channel *chptr;
struct membership *msptr;
char nick2[NICKLEN+1];
char *nick3 = rb_strdup(nick);
char nick3[NICKLEN+1];
char text3[BUFSIZE];
char text2[BUFSIZE];
rb_strlcpy(nick3, nick, sizeof nick3);
if(!IsFloodDone(source_p))
flood_endgrace(source_p);