diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-10 09:48:52 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-10 09:48:52 +0000 |
commit | 4d72d28f8d3b2305c4f1b881d8763beb55ab3107 (patch) | |
tree | 79e384f6dba64f7e5492ebd5131274e8eea2505f /usr.bin/cvs | |
parent | fcfb76ace29ab3a387ee0582745009145e8f5b77 (diff) |
Properly free entry
> Patch from Igor Zinovik
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index a87351e96ab..8157ed60dc8 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.85 2008/01/10 09:47:05 tobias Exp $ */ +/* $OpenBSD: client.c,v 1.86 2008/01/10 09:48:51 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -796,6 +796,7 @@ cvs_client_merged(char *data) ent = cvs_ent_open(wdir); cvs_ent_add(ent, entry); cvs_ent_close(ent, ENT_SYNC); + xfree(entry); if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1) fatal("cvs_client_merged: open: %s: %s", |