diff options
authorCsaba Henk <>2012-02-27 05:40:58 +0100
committerVijay Bellur <>2012-02-27 02:15:51 -0800
commit20b50008c710c973ebb0a84506b55e6aea044fad (patch)
parent728de5be7ce2975efb59bb5928fd7261d5ec7760 (diff)
libglusterfs: fix GF_FREE
Argument-taking macros should be possible to use with same syntax that of C functions. In particular (assuming FOO is a single-argument macro), FOO(bar) should break and if (cond) FOO(bar); else baz(); should compile. Change-Id: If852c128a7317dc0dda1c669be7c6af40501e48d BUG: 762061 Signed-off-by: Csaba Henk <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Amar Tumballi <>
2 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h
index a23b122..b9255ea 100644
--- a/libglusterfs/src/mem-pool.h
+++ b/libglusterfs/src/mem-pool.h
@@ -116,7 +116,7 @@ void* __gf_default_realloc (void *oldptr, size_t size)
#define GF_REALLOC(ptr, size) __gf_realloc (ptr, size)
-#define GF_FREE(free_ptr) __gf_free (free_ptr);
+#define GF_FREE(free_ptr) __gf_free (free_ptr)
static inline
char * gf_strdup (const char *src)
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 2e5825e..b87c2cd 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2344,7 +2344,7 @@ glusterd_xfer_friend_add_resp (rpcsvc_request_t *req, char *hostname, int port,
gf_log ("glusterd", GF_LOG_INFO,
"Responded to %s (%d), ret: %d", hostname, port, ret);
if (rsp.hostname)
- GF_FREE (rsp.hostname)
+ GF_FREE (rsp.hostname);
return ret;