Revert "fix memory leak in encoder_close (#1366)"

This reverts commit 62f812dca8fda5da7e14252cfcdd8c1ebef38c2c.

old-commit-hash: 9ad6cbbe6d
commatwo_master
Willem Melching 5 years ago
parent e95719f5e9
commit 39cce620d4
  1. 1
      selfdrive/loggerd/encoder.c

@ -635,7 +635,6 @@ void encoder_close(EncoderState *s) {
if (s->remuxing) {
av_write_trailer(s->ofmt_ctx);
avio_closep(&s->ofmt_ctx->pb);
avcodec_free_context(&s->codec_ctx);
avformat_free_context(s->ofmt_ctx);
} else {
fclose(s->of);

Loading…
Cancel
Save