Merged revisions 33515 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 20:49:16 +0000 (20:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 20:49:16 +0000 (20:49 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r33515 | russell | 2006-06-11 16:48:41 -0400 (Sun, 11 Jun 2006) | 4 lines

fix a place that would leak a frame (all of these fixes are in applications
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/trunk@33516 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_ices.c

index 195607a..67b107e 100644 (file)
@@ -173,6 +173,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;
                                        }
                                }