changeset 412:47bcc3536bd5

merge of '691c56da3db2685f58ea53540a73c1b79e7df9cd' and 'e0efd546c3cdb2828971e41af2afe43e850c641d'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Feb 2007 10:44:12 +0000 (2007-02-04)
parents b895f91c2ee6 (current diff) 253958302381 (diff)
children d482e51447ba fb02e3180d90
files cli-runopts.c libtomcrypt/src/headers/ltc_tommath.h libtomcrypt/src/headers/tommath_class.h libtomcrypt/src/headers/tommath_superclass.h libtomcrypt/src/misc/mpi/is_prime.c libtomcrypt/src/misc/mpi/mpi_to_ltc_error.c libtomcrypt/src/misc/mpi/rand_prime.c libtomcrypt/src/pk/asn1/der/sequence/der_decode_sequence.c libtomcrypt/src/pk/asn1/der/sequence/der_encode_sequence.c libtomcrypt/src/pk/dh/dh.c libtomcrypt/src/pk/dh/dh_sys.c libtomcrypt/src/pk/ecc/ecc_sys.c libtomcrypt/src/pk/packet_store_header.c libtomcrypt/src/pk/packet_valid_header.c libtomcrypt/testprof/dh_tests.c libtomcrypt/testprof/test.c libtommath/TODO libtommath/logs/sqr.old
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cli-runopts.c	Sun Feb 04 10:32:59 2007 +0000
+++ b/cli-runopts.c	Sun Feb 04 10:44:12 2007 +0000
@@ -363,7 +363,8 @@
 
 	TRACE(("enter addforward"))
 
-	/* We probably don't want to be editing argvs */
+	/* We need to split the original argument up. This var
+	   is never free()d. */ 
 	str = m_strdup(origstr);
 
 	listenport = str;
@@ -415,8 +416,6 @@
 	newfwd->next = *fwdlist;
 	*fwdlist = newfwd;
 
-	m_free(str);
-
 	TRACE(("leave addforward: done"))
 	return;