Permalink
Browse files

Fix potential double-free (found by Coverity)

  • Loading branch information...
jyavenard committed May 19, 2012
1 parent 4d0bbbe commit 22f98676d00e9c174cfea421022820d42e090a4a
Showing with 0 additions and 2 deletions.
  1. +0 −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 +

0 comments on commit 22f9867

Please sign in to comment.