source: npl/system/netkit-ftp/patches/30-netkit-ftp-0.17-commands-leaks.patch @ 66e7a2c

perl-5.22
Last change on this file since 66e7a2c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 401 bytes
RevLine 
[c5c522c]1diff -up netkit-ftp-0.17/ftp/cmds.c.orig netkit-ftp-0.17/ftp/cmds.c
2--- netkit-ftp-0.17/ftp/cmds.c.orig     2011-09-05 14:41:34.000000000 +0200
3+++ netkit-ftp-0.17/ftp/cmds.c  2011-09-05 14:44:44.000000000 +0200
4@@ -499,6 +499,9 @@ usage:
5        }
6        sendrequest(cmd, argv[1], argv[2],
7            argv[1] != oldargv1 || argv[2] != oldargv2);
8+       if (argv[1] != oldargv1) {
9+               free(argv[1]);
10+       }
11 }
12 
13 void mabort(int);
Note: See TracBrowser for help on using the repository browser.