]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a missing call to free before returning in an error condition
authorRussell Bryant <russell@russellbryant.com>
Thu, 2 Nov 2006 13:55:39 +0000 (13:55 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 2 Nov 2006 13:55:39 +0000 (13:55 +0000)
(issue #8268, mrness)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46876 65c4cc65-6c06-0410-ace0-fbb531ad65f3

callerid.c

index f709bd501796223874d06507470a5c887965d6f5..39690eed954f1365a120926663772670f3c52f39 100644 (file)
@@ -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) {