Commit cbac7028 authored by Andrew Price's avatar Andrew Price
Browse files

Free an asprintf allocated string

parent d6cc4fc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -429,8 +429,8 @@ static int handle_command(CONNECTION *co)
	if (co->authd && strncasecmp(buff, "sayto ", 6)==0) {
		char *to;
		char *text;
		char *status;
		const char *type = "says";
		_autofree char *status = NULL;

		if (buff[strlen(buff) - 1] == '?')
			type = "asks";