]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix a place that would leak a frame (all of these fixes are in applications
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 20:48:41 +0000 (20:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 20:48:41 +0000 (20:48 +0000)
that call ast_read() on a channel but have code paths in them that would not
free the frame)

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

apps/app_ices.c

index 85f4159ec486a760722ec6a8b7b4ea8574610ff7..b6b5ad3f7634cda668e6d1210a46dbce9a2483c3 100644 (file)
@@ -175,6 +175,7 @@ static int ices_exec(struct ast_channel *chan, void *data)
                                        if (errno != EAGAIN) {
                                                ast_log(LOG_WARNING, "Write failed to pipe: %s\n", strerror(errno));
                                                res = -1;
+                                               ast_frfree(f);
                                                break;
                                        }
                                }