[mw-devel] [Git][arthur/mw][master] Avoid a double free in gaglist_destroy()

Andrew Price welshbyte at sucs.org
Sat Jul 29 18:31:24 BST 2017


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
ac99b2fd by Andrew Price at 2017-07-29T18:31:11+01:00
Avoid a double free in gaglist_destroy()

- - - - -


1 changed file:

- src/client/gaglist.c


Changes:

=====================================
src/client/gaglist.c
=====================================
--- a/src/client/gaglist.c
+++ b/src/client/gaglist.c
@@ -28,6 +28,7 @@ void gaglist_destroy(void)
 	for (size_t i = 0; i < gaglist_len; i++)
 		free(gaglist[i]);
 	free(gaglist);
+	gaglist = NULL;
 }
 
 char *gaglist_tc_filter(const char *text, int state)



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

---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/ac99b2fd40c9e2dc9ecb1d56d6db72c326e6a41d
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/20170729/e23482cc/attachment.html>


More information about the mw-devel mailing list