Skip to content

Commit

Permalink
lib: remove unneccesary i_stream_unrefs of parent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and GitLab committed Apr 21, 2016
1 parent 5a1b498 commit 899653b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/lib/istream-failure-at.c
Expand Up @@ -16,7 +16,6 @@ static void i_stream_failure_at_destroy(struct iostream_private *stream)
(struct failure_at_istream *)stream;

i_free(fstream->error_string);
i_stream_unref(&fstream->istream.parent);
}

static ssize_t
Expand Down
1 change: 0 additions & 1 deletion src/lib/istream-limit.c
Expand Up @@ -21,7 +21,6 @@ static void i_stream_limit_destroy(struct iostream_private *stream)
/* get to same position in parent stream */
i_stream_seek(lstream->istream.parent, v_offset);
}
i_stream_unref(&lstream->istream.parent);
}

static ssize_t i_stream_limit_read(struct istream_private *stream)
Expand Down
1 change: 0 additions & 1 deletion src/lib/istream-rawlog.c
Expand Up @@ -33,7 +33,6 @@ static void i_stream_rawlog_destroy(struct iostream_private *stream)
/* get to same position in parent stream */
i_stream_seek(rstream->istream.parent, v_offset);
}
i_stream_unref(&rstream->istream.parent);
}

static ssize_t i_stream_rawlog_read(struct istream_private *stream)
Expand Down
1 change: 0 additions & 1 deletion src/lib/istream-sized.c
Expand Up @@ -26,7 +26,6 @@ static void i_stream_sized_destroy(struct iostream_private *stream)
/* get to same position in parent stream */
i_stream_seek(sstream->istream.parent, v_offset);
}
i_stream_unref(&sstream->istream.parent);
}

static const char *
Expand Down

0 comments on commit 899653b

Please sign in to comment.