1
0
forked from bip/bip

Fix one leak. Fix git-release script for new git.

This commit is contained in:
Arnaud Cornet 2009-02-28 11:19:57 +01:00
parent 29ff342d93
commit b6f30f6a03
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ fi
olddir=$(pwd) olddir=$(pwd)
tmpdir=$(mktemp -d /var/tmp/bip-XXXXX) 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 cd $tmpdir
tar xf $prefix.tar tar xf $prefix.tar
cd $prefix cd $prefix

View File

@ -631,8 +631,10 @@ void log_ping_timeout(log_t *logdata)
snprintf(logdata->buffer, LOGLINE_MAXLEN, snprintf(logdata->buffer, LOGLINE_MAXLEN,
"%s -!- Ping timeout with server...", timestamp()); "%s -!- Ping timeout with server...", timestamp());
while ((s = list_remove_first(l))) while ((s = list_remove_first(l))) {
log_write(logdata, s, logdata->buffer); log_write(logdata, s, logdata->buffer);
free(s);
}
list_free(l); list_free(l);
log_disconnected(logdata); log_disconnected(logdata);
} }