Author: alfred
Date: Thu Mar  4 21:53:45 2010
New Revision: 204737
URL: http://svn.freebsd.org/changeset/base/204737

Log:
  put calls to gzclose() under ifdef COMPRESS_USER_CORES to prevent
  undefined symbols on kernels without this option.
  
  Reported by: Alexander Best

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c  Thu Mar  4 21:52:40 2010        (r204736)
+++ head/sys/kern/imgact_elf.c  Thu Mar  4 21:53:45 2010        (r204737)
@@ -1136,11 +1136,11 @@ __elfN(coredump)(struct thread *td, stru
 
 #ifdef COMPRESS_USER_CORES
 done:
-#endif
        if (core_buf)
                free(core_buf, M_TEMP);
        if (gzfile)
                gzclose(gzfile);
+#endif
 
        free(hdr, M_TEMP);
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to