[mw-devel] [Git][arthur/mw][master] Free an asprintf allocated string

Andrew Price welshbyte at sucs.org
Tue Jun 27 23:03:19 BST 2017


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
cbac7028 by Andrew Price at 2017-06-27T22:58:01+01:00
Free an asprintf allocated string

- - - - -


1 changed file:

- src/webclient/comms.c


Changes:

=====================================
src/webclient/comms.c
=====================================
--- a/src/webclient/comms.c
+++ b/src/webclient/comms.c
@@ -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";



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/cbac7028fee0299d3519740ace5498029b3800da

---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/cbac7028fee0299d3519740ace5498029b3800da
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20170627/416a7712/attachment.html>


More information about the mw-devel mailing list