summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c3
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);