From cd4fd271c6636ecc100171403b324a65a9e77fe2 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 1 Apr 2011 03:24:12 +0000 Subject: Replace strdup call to gf_strdup as GF_FREE is being called Also, fix validation of bs and count to <= 0. Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 2645 (volume top write-perf results in memory corruption) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2645 --- libglusterfs/src/common-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 0d850740eee..e745ec0faf3 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -1783,7 +1783,7 @@ gf_is_str_int (const char *value) GF_VALIDATE_OR_GOTO ("", value, out); - str = strdup (value); + str = gf_strdup (value); if (!str) goto out; -- cgit