diff options
author | Amar Tumballi <amar@gluster.com> | 2010-08-13 02:33:37 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-13 04:41:25 -0700 |
commit | 42436eb494e29745bd5e63865085fc26316ddf57 (patch) | |
tree | 23d0ad12c5b9296acd0070df7c89aba589646f69 /rpc | |
parent | 4f414b5c497541d8ab1ba8aa3edc38c2d468bc23 (diff) |
if frame is NULL, don't continue to destroy it.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1272 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1272
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index 7e3d90bfeaa..2bbbb43c4af 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -345,6 +345,9 @@ saved_frames_unwind (struct saved_frames *saved_frames) void saved_frames_destroy (struct saved_frames *frames) { + if (!frames) + return; + saved_frames_unwind (frames); GF_FREE (frames); |