Skip to content

Commit

Permalink
Fix potential double-free (found by Coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyavenard committed May 19, 2012
1 parent 4d0bbbe commit 22f9867
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mythtv/libs/libmyth/audio/audiooutputdigitalencoder.cpp
Expand Up @@ -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 +
Expand Down Expand Up @@ -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 +
Expand Down

0 comments on commit 22f9867

Please sign in to comment.