]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid dangling reference at end of fs_cli
authorTravis Cross <tc@traviscross.com>
Mon, 27 May 2013 20:47:04 +0000 (20:47 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 29 May 2013 02:48:33 +0000 (02:48 +0000)
Not that it really matters since we're returning to the OS momentarily
at that point anyway.

libs/esl/fs_cli.c

index 5a675f8b8a423193ccb5d4244b8935bf5cbb91cb..56903b42e8ce2b9058598e3b329edd00f8477164 100644 (file)
@@ -1640,6 +1640,7 @@ int main(int argc, char *argv[])
        el_end(el);
 #endif
        esl_disconnect(&handle);
+       global_handle = NULL;
        thread_running = 0;
        return 0;
 }