The free callback could end up being fired before the done callback
authornicm <nicm@openbsd.org>
Tue, 21 Apr 2015 21:31:02 +0000 (21:31 +0000)
committernicm <nicm@openbsd.org>
Tue, 21 Apr 2015 21:31:02 +0000 (21:31 +0000)
commit6a4e721560a8fdd13ef68786174c15fed54e8aea
treedd5813401c73005dcd0e927d856a40d9a34c61fa
parent6df8b7e5012410224f25125a87a360f6c31e06ce
The free callback could end up being fired before the done callback
(happens on Cygwin), so use a reference count instead of a single
flag. SF bug 188 reported by "iceboy".
usr.bin/tmux/cmd-if-shell.c