Re: ahci.c memory leak in error path

2015-10-04 Thread Jonathan Matthew
On Fri, Oct 02, 2015 at 02:37:18PM +0200, Benjamin Baier wrote: > Fix memory leak in error path. > Found by llvm/scan-build. Thanks, I've just committed this. > > Also port (sc->sc_ports[port]) was not assigned, so "goto freeport;" > seems wrong. > > Index: ahci.c >

ahci.c memory leak in error path

2015-10-02 Thread Benjamin Baier
Fix memory leak in error path. Found by llvm/scan-build. Also port (sc->sc_ports[port]) was not assigned, so "goto freeport;" seems wrong. Index: ahci.c === RCS file: /cvs/src/sys/dev/ic/ahci.c,v retrieving revision 1.22 diff -u -p -