Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix potential double-free (found by Coverity)

  • Loading branch information...
commit 22f98676d00e9c174cfea421022820d42e090a4a 1 parent 4d0bbbe
@jyavenard jyavenard authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  mythtv/libs/libmyth/audio/audiooutputdigitalencoder.cpp
View
2  mythtv/libs/libmyth/audio/audiooutputdigitalencoder.cpp
@@ -185,7 +185,6 @@ size_t AudioOutputDigitalEncoder::Encode(void *buf, int len, AudioFormat format)
(realloc(in, in_size, required_len));
if (!tmp)
{
- free(in);
in = NULL;
in_size = 0;
LOG(VB_AUDIO, LOG_ERR, LOC +
@@ -251,7 +250,6 @@ size_t AudioOutputDigitalEncoder::Encode(void *buf, int len, AudioFormat format)
(realloc(out, out_size, required_len));
if (!tmp)
{
- free(out);
out = NULL;
out_size = 0;
LOG(VB_AUDIO, LOG_ERR, LOC +
Please sign in to comment.
Something went wrong with that request. Please try again.