]> code.citadel.org Git - citadel.git/commitdiff
* Added pthread_attr_destroy() in the appropriate location (thanks fleeb!)
authorArt Cancro <ajc@citadel.org>
Sun, 3 Oct 2004 03:57:32 +0000 (03:57 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 3 Oct 2004 03:57:32 +0000 (03:57 +0000)
citadel/ChangeLog
citadel/sysdep.c

index e73e9e694fef6d3ffc1b956efea0f1e822c9d5b1..58b26c3125043c6ac2cb2db0b13ff427bda3f2a4 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 626.2  2004/10/03 03:57:32  ajc
+ * Added pthread_attr_destroy() in the appropriate location (thanks fleeb!)
+
  Revision 626.1  2004/10/01 15:58:08  ajc
  * Configure "notes" view and auto-create Notes> room
 
@@ -6125,3 +6128,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index fa3fd5f32754adb89841eb24b42725a53342f6e5..33b0db36919deb47a0aaa4911af0ad25217d10d6 100644 (file)
@@ -775,6 +775,7 @@ void create_worker(void) {
        if ((ret = pthread_attr_setstacksize(&attr, 128 * 1024))) {
                lprintf(CTDL_EMERG, "pthread_attr_setstacksize: %s\n", strerror(ret));
                time_to_die = -1;
+               pthread_attr_destroy(&attr);
                return;
        }
 
@@ -787,6 +788,7 @@ void create_worker(void) {
 
        n->next = worker_list;
        worker_list = n;
+       pthread_attr_destroy(&attr);
 }