From: Russell Bryant Date: Thu, 2 Nov 2006 13:55:39 +0000 (+0000) Subject: Add a missing call to free before returning in an error condition X-Git-Tag: 1.2.14~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6465e0e69bea550950c49666c35cc2a47c82c4f;p=thirdparty%2Fasterisk.git Add a missing call to free before returning in an error condition (issue #8268, mrness) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46876 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/callerid.c b/callerid.c index f709bd5017..39690eed95 100644 --- a/callerid.c +++ b/callerid.c @@ -280,6 +280,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int buf += (olen - mylen); if (res < 0) { ast_log(LOG_NOTICE, "fsk_serie failed\n"); + free(obuf); return -1; } if (res == 1) {