diff options
| -rw-r--r-- | cli/src/cli.c | 2 | ||||
| -rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 2 | 
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 46a445cf7c5..f20ea1f1746 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -272,6 +272,8 @@ cli_submit_request (void *req, call_frame_t *frame,  out:          if (new_iobref)                  iobref_unref (iobref); +        if (iobuf) +                iobuf_unref (iobuf);          return ret;  } diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 5afa558dd70..6e00cd1fdab 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -1100,6 +1100,8 @@ out:          if (iobref)                  iobref_unref (iobref); +        if (iobuf) +                iobuf_unref (iobuf);          return ret;  }  | 
