diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:00:58 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:00:58 +0000 |
commit | 7eefce0519e82c2d3095cfc1e8a51f6362e5f945 (patch) | |
tree | 9de49e1f2fc574f4e68e0c5eb903cb537c8c2695 /netkit-ftp-0.17-commands-leaks.patch | |
parent | 342496bf63102d7c36aa3382e55066e9939e86cc (diff) |
automatic import of ftpopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'netkit-ftp-0.17-commands-leaks.patch')
-rw-r--r-- | netkit-ftp-0.17-commands-leaks.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/netkit-ftp-0.17-commands-leaks.patch b/netkit-ftp-0.17-commands-leaks.patch new file mode 100644 index 0000000..a2bd264 --- /dev/null +++ b/netkit-ftp-0.17-commands-leaks.patch @@ -0,0 +1,13 @@ +diff -up netkit-ftp-0.17/ftp/cmds.c.orig netkit-ftp-0.17/ftp/cmds.c +--- netkit-ftp-0.17/ftp/cmds.c.orig 2011-09-05 14:41:34.000000000 +0200 ++++ netkit-ftp-0.17/ftp/cmds.c 2011-09-05 14:44:44.000000000 +0200 +@@ -499,6 +499,9 @@ usage: + } + sendrequest(cmd, argv[1], argv[2], + argv[1] != oldargv1 || argv[2] != oldargv2); ++ if (argv[1] != oldargv1) { ++ free(argv[1]); ++ } + } + + void mabort(int); |