# HG changeset patch # User masneyb # Date 1073237210 0 # Node ID 3fccdc9eb16f0a5abd8109f8600475710ef3d910 # Parent 0c49989ba4f2def217f8957e0aef54c45010c555 2003-1-4 Brian Masney * lib/misc.c (gftp_parse_command_line) - unified this function so that it is consistent for all arguments. * lib/protocols.c (gftp_file_destroy) - fixed memory leak (utf8_file was not being freed) diff -r 0c49989ba4f2 -r 3fccdc9eb16f ChangeLog --- a/ChangeLog Sun Jan 04 17:23:58 2004 +0000 +++ b/ChangeLog Sun Jan 04 17:26:50 2004 +0000 @@ -1,4 +1,10 @@ 2003-1-4 Brian Masney + * lib/misc.c (gftp_parse_command_line) - unified this function so that + it is consistent for all arguments. + + * lib/protocols.c (gftp_file_destroy) - fixed memory leak (utf8_file + was not being freed) + * docs/gftp-faq.sgml - updated link to the (old) threaded version of XFree86 libraries @@ -1892,7 +1898,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.190 2004/01/04 17:23:58 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.191 2004/01/04 17:26:50 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r 0c49989ba4f2 -r 3fccdc9eb16f lib/misc.c --- a/lib/misc.c Sun Jan 04 17:23:58 2004 +0000 +++ b/lib/misc.c Sun Jan 04 17:26:50 2004 +0000 @@ -388,17 +388,20 @@ { if (strcmp (argv[0][1], "--help") == 0 || strcmp (argv[0][1], "-h") == 0) - gftp_usage (); + { + gftp_usage (); + exit (0); + } else if (strcmp (argv[0][1], "--version") == 0 || strcmp (argv[0][1], "-v") == 0) { - printf ("%s\n", gftp_version); - exit (0); + printf ("%s\n", gftp_version); + exit (0); } else if (strcmp (argv[0][1], "--info") == 0) { gftp_info (); - exit (0); + exit (0); } } return (0); diff -r 0c49989ba4f2 -r 3fccdc9eb16f lib/protocols.c --- a/lib/protocols.c Sun Jan 04 17:23:58 2004 +0000 +++ b/lib/protocols.c Sun Jan 04 17:26:50 2004 +0000 @@ -106,6 +106,8 @@ if (file->file) g_free (file->file); + if (file->utf8_file) + g_free (file->utf8_file); if (file->user) g_free (file->user); if (file->group)