# HG changeset patch # User Gorka Guardiola # Date 1328645063 0 # Node ID 4f9ba294341fda521a87451439be74904e1158c2 # Parent 22d00b9e0529e4494a66bc39a379448ac2f45150 execac: free the core on failure with some extra arm twisting to the compiler R=nixiedev, john, nemo CC=nix-dev http://codereview.appspot.com/5609050 Committer: John Floren diff -r 22d00b9e0529 -r 4f9ba294341f sys/src/nix/port/sysproc.c --- a/sys/src/nix/port/sysproc.c Tue Feb 07 18:33:52 2012 +0000 +++ b/sys/src/nix/port/sysproc.c Tue Feb 07 20:04:23 2012 +0000 @@ -336,8 +336,15 @@ nexterror(); } - if(core != 0) + if(core != 0){ up->ac = getac(up, core); + mp = up->ac; + /* + * This variable is not used later, so take the address + * to make it go to memory for the waserror. + */ + USED(&mp); + } argc = 0; file = validnamedup(ufile, 1);