diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-11 23:05:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-11 23:05:41 +0000 |
commit | 21e16ba837d0a9686d6b4b4dbb5c3fdfc8e779d9 (patch) | |
tree | a7ced5e4555fe44d1ccc1d51faf06c717ce8eb5f | |
parent | 2fcfda899c1c6062d4a2925a61a724a9c848efbe (diff) |
memory leak found by parfait
-rw-r--r-- | usr.sbin/sasyncd/sasyncd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sasyncd/sasyncd.c b/usr.sbin/sasyncd/sasyncd.c index e8aebf8b71c..4a53424fa71 100644 --- a/usr.sbin/sasyncd/sasyncd.c +++ b/usr.sbin/sasyncd/sasyncd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sasyncd.c,v 1.18 2008/03/17 20:30:17 sobrado Exp $ */ +/* $OpenBSD: sasyncd.c,v 1.19 2009/11/11 23:05:40 deraadt Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -72,6 +72,7 @@ sasyncd_run(pid_t ppid) wfds = (fd_set *)malloc(fdsetsize); if (!wfds) { log_err("malloc(%lu) failed", (unsigned long)fdsetsize); + free(rfds); return -1; } |