aboutsummaryrefslogtreecommitdiffstats
path: root/callerid.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-02 13:55:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-02 13:55:39 +0000
commit3765b2ae758de4afdc21000084efb0608f0b930b (patch)
treed5b8b4c38e66bbb1721a10b1ac3dad6bc1cd35bb /callerid.c
parent7179ba105f7b84b12710716121ed89ec39f16ca9 (diff)
Add a missing call to free before returning in an error condition
(issue #8268, mrness) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46876 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'callerid.c')
-rw-r--r--callerid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/callerid.c b/callerid.c
index f709bd501..39690eed9 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) {