diff options
author | Basavanagowda Kanur <gowda@gluster.com> | 2009-07-06 04:27:10 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-06 19:24:32 -0700 |
commit | 8d74fe9ba6c3c2f68f71cacd56fad9328b8b0090 (patch) | |
tree | e9b16b5a514577fb9b834e1e7e739974bec32f9f /libglusterfs/src | |
parent | 346b7f0c63920a73fd70b88d683c6a033e6b8abd (diff) |
libglusterfs/logging - fix memory leak
in _gf_log(), free 'msg' before returning.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/logging.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index d9a32cc51..c345faf03 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -517,6 +517,8 @@ log: } glusterfs_central_log_flag_unset (); } + + FREE (msg); FREE (str1); FREE (str2); |