diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2010-09-14 00:54:22 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-14 00:47:19 -0700 |
commit | b0003a7e789e0618656dd4214195578f53d1e84e (patch) | |
tree | 49ea5c372d6609b5781a7d1f789c3294469b1cba /libglusterfs/src/dict.h | |
parent | 174f963c846331c6dafda169451790b6039ef3fb (diff) |
mgmt/glusterd: free xdr allocations
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1186 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186
Diffstat (limited to 'libglusterfs/src/dict.h')
-rw-r--r-- | libglusterfs/src/dict.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index 508b139a288..41b6b6780cf 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -38,6 +38,7 @@ typedef struct _data_pair data_pair_t; struct _data { unsigned char is_static:1; unsigned char is_const:1; + unsigned char is_stdalloc:1; int32_t len; struct iovec *vec; char *data; @@ -61,6 +62,7 @@ struct _dict { data_pair_t **members; data_pair_t *members_list; char *extra_free; + char *extra_stdfree; gf_lock_t lock; }; @@ -179,6 +181,7 @@ GF_MUST_CHECK int dict_set_bin (dict_t *this, char *key, void *ptr, size_t size) GF_MUST_CHECK int dict_set_static_bin (dict_t *this, char *key, void *ptr, size_t size); GF_MUST_CHECK int dict_set_str (dict_t *this, char *key, char *str); +GF_MUST_CHECK int dict_set_dynmstr (dict_t *this, char *key, char *str); GF_MUST_CHECK int dict_set_dynstr (dict_t *this, char *key, char *str); GF_MUST_CHECK int dict_get_str (dict_t *this, char *key, char **str); |