Module: sems Branch: master Commit: f01bbdfe47d2cf6917bd114e385c95c765d9d948 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=f01bbdfe47d2cf6917bd114e385c95c765d9d948
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Apr 11 16:36:10 2011 +0200 fix mem leak in g729 wrapper. patch by Keyur Parikh at livewiremobile com --- core/plug-in/g729/g729.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/plug-in/g729/g729.c b/core/plug-in/g729/g729.c index 94dae7f..a850345 100644 --- a/core/plug-in/g729/g729.c +++ b/core/plug-in/g729/g729.c @@ -223,7 +223,7 @@ g729_destroy(long h_codec) { struct G729_codec *codec = (struct G729_codec *) h_codec; - if (h_codec) + if (!h_codec) return; stream_destroy(&codec->dec); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
