Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
*.[ch] refactoring: make use of the FREE_AND_NULL() macro
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 9bfcf870f9078f75349bd3b4976c71bbf5c49ebf..cf3508800132b8843d8dcad3f34f25feb593474b 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-1145,8
+1145,7
@@
void transport_unlock_pack(struct transport *transport)
{
if (transport->pack_lockfile) {
unlink_or_warn(transport->pack_lockfile);
- free(transport->pack_lockfile);
- transport->pack_lockfile = NULL;
+ FREE_AND_NULL(transport->pack_lockfile);
}
}