diff options
author | shishir gowda <shishirng@gluster.com> | 2011-04-01 03:24:12 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-04-01 06:08:33 -0700 |
commit | cd4fd271c6636ecc100171403b324a65a9e77fe2 (patch) | |
tree | c86febf72ba00dd56600f3e8ba836aaa96ae83bc /libglusterfs | |
parent | 5c709704ab5767b55f4eef7cddea52e18e2a6d42 (diff) |
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 <shishirng@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2645 (volume top write-perf results in memory corruption)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2645
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/common-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 0d850740e..e745ec0fa 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; |