From 42436eb494e29745bd5e63865085fc26316ddf57 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 13 Aug 2010 02:33:37 +0000 Subject: if frame is NULL, don't continue to destroy it. Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1272 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1272 --- rpc/rpc-lib/src/rpc-clnt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rpc') diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index 7e3d90bfe..2bbbb43c4 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); -- cgit