Signed-off-by: Wei,Jiangang <[email protected]>
---
pan/splitstr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pan/splitstr.c b/pan/splitstr.c
index fbcd697..decfbf5 100644
--- a/pan/splitstr.c
+++ b/pan/splitstr.c
@@ -122,6 +122,7 @@ const char **splitstr(const char *str, const char
*separator, int *argcount)
}
}
arg_array[num_toks] = NULL;
+ free(arg_string);
/*
* If there are any spaces left in our array, make them NULL
--
1.9.3
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list