Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-06-30 19:54:45 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/ircd_parser.y
Log message:
Fix a minor memory leak when iauth is configured.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.116 ircu2.10/ChangeLog:1.710.2.117
--- ircu2.10/ChangeLog:1.710.2.116 Fri Jun 30 08:52:17 2006
+++ ircu2.10/ChangeLog Fri Jun 30 12:54:35 2006
@@ -1,5 +1,9 @@
2006-06-30 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/ircd_parser.y (iauth*): Avoid leaking program name string.
+
+2006-06-30 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/s_auth.c (check_auth_finished): Free auth structure when
done with it.
(sendto_iauth): Free message buffer when done with it.
Index: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.56.2.5
ircu2.10/ircd/ircd_parser.y:1.56.2.6
--- ircu2.10/ircd/ircd_parser.y:1.56.2.5 Wed Jun 7 19:11:21 2006
+++ ircu2.10/ircd/ircd_parser.y Fri Jun 30 12:54:35 2006
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
- * $Id: ircd_parser.y,v 1.56.2.5 2006/06/08 02:11:21 entrope Exp $
+ * $Id: ircd_parser.y,v 1.56.2.6 2006/06/30 19:54:35 entrope Exp $
*/
%{
@@ -1009,7 +1009,7 @@
{
auth_spawn(stringno, stringlist);
while (stringno > 0)
- MyFree(stringlist[stringno--]);
+ MyFree(stringlist[--stringno]);
};
iauthitems: iauthitem iauthitems | iauthitem;
@@ -1017,5 +1017,5 @@
iauthprogram: PROGRAM '='
{
while (stringno > 0)
- MyFree(stringlist[stringno--]);
+ MyFree(stringlist[--stringno]);
} stringlist ';';
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches