Unleak reference
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 26 Apr 2008 15:08:51 +0000 (15:08 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 26 Apr 2008 15:08:51 +0000 (15:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114692 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c23853e..eb0b485 100644 (file)
@@ -13330,6 +13330,7 @@ static char *_sip_qualify_peer(int type, int fd, struct mansession *s, const str
        load_realtime = (argc == 5 && !strcmp(argv[4], "load")) ? TRUE : FALSE;
        if ((peer = find_peer(argv[3], NULL, load_realtime))) {
                sip_poke_peer(peer, 1);
+               unref_peer(peer, "qualify: done with peer");
        } else if (type == 0) {
                ast_cli(fd, "Peer '%s' not found\n", argv[3]);
        } else {