Fix one leak. Fix git-release script for new git.
This commit is contained in:
parent
29ff342d93
commit
b6f30f6a03
@ -22,7 +22,7 @@ fi
|
||||
|
||||
olddir=$(pwd)
|
||||
tmpdir=$(mktemp -d /var/tmp/bip-XXXXX)
|
||||
git-archive --format=tar --prefix=$prefix/ HEAD > $tmpdir/$prefix.tar
|
||||
git archive --format=tar --prefix=$prefix/ HEAD > $tmpdir/$prefix.tar
|
||||
cd $tmpdir
|
||||
tar xf $prefix.tar
|
||||
cd $prefix
|
||||
|
@ -631,8 +631,10 @@ void log_ping_timeout(log_t *logdata)
|
||||
|
||||
snprintf(logdata->buffer, LOGLINE_MAXLEN,
|
||||
"%s -!- Ping timeout with server...", timestamp());
|
||||
while ((s = list_remove_first(l)))
|
||||
while ((s = list_remove_first(l))) {
|
||||
log_write(logdata, s, logdata->buffer);
|
||||
free(s);
|
||||
}
|
||||
list_free(l);
|
||||
log_disconnected(logdata);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user