diff options
author | fcolin | 2005-08-18 07:36:18 +0000 |
---|---|---|
committer | fcolin | 2005-08-18 07:36:18 +0000 |
commit | 9921017a4b14b379d99305e17f8583ff90de0c1b (patch) | |
tree | 2f76b0a528a766ee67be1ba82973f02acc6e85c2 /src/ivybind.c | |
parent | f625f6e00c1d5d1194ce3db62e59ccc47fdf2386 (diff) | |
download | ivy-c-9921017a4b14b379d99305e17f8583ff90de0c1b.zip ivy-c-9921017a4b14b379d99305e17f8583ff90de0c1b.tar.gz ivy-c-9921017a4b14b379d99305e17f8583ff90de0c1b.tar.bz2 ivy-c-9921017a4b14b379d99305e17f8583ff90de0c1b.tar.xz |
memory leak malloc/free cleanup
Diffstat (limited to 'src/ivybind.c')
-rw-r--r-- | src/ivybind.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ivybind.c b/src/ivybind.c index 656be62..9d95e92 100644 --- a/src/ivybind.c +++ b/src/ivybind.c @@ -15,7 +15,6 @@ * copyright notice regarding this software */ /* Module de gestion de la syntaxe des messages Ivy */ - #include <stdio.h> #include <sys/types.h> #include <time.h> @@ -24,6 +23,11 @@ #include <string.h> #include <stdarg.h> +#ifdef WIN32 +#include <crtdbg.h> +#endif + + #ifdef USE_PCRE_REGEX #define OVECSIZE 60 /* must be multiple of 3, for regexp return */ #include <pcre.h> @@ -274,7 +278,7 @@ void IvyBindingParseMessage( const char *msg ) { char *val = strtok( NULL, " ="); if ( arg && val ) - hash_add( msg_args_values, (HASHKEYTYPE)arg, val ); + hash_addstring( msg_args_values, arg, val ); } } int IvyBindingFilter(IvyBindingType typ, int len, const char *exp) |