Hi Stefan,

Found memory leak in the G.729 wrapper for SEMS ....

In file g729.c, in static void g729_destroy(long h_codec) the if condition 
check is missing "!"...

Corrected code is below .... for submit to SEMS main line ...


static void
g729_destroy(long h_codec)
{
    struct G729_codec *codec = (struct G729_codec *) h_codec;

    if (!h_codec)   
      return;

    stream_destroy(&codec->dec);
    stream_destroy(&codec->enc);
    free(codec);
}

Thanks,

Keyur Parikh

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to