Changeset dc27de3 for lib


Ignore:
Timestamp:
04/27/18 15:24:36 (3 years ago)
Author:
Richard Sanger <rsanger@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
c22a4bb
Parents:
7bdf6d1
Message:

Only destroy previously opened message queues

Fixes issue #68

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rc1205bd rdc27de3  
    724724                libtrace_ocache_destroy(&libtrace->packet_freelist);
    725725                for (i = 0; i < libtrace->perpkt_thread_count; ++i) {
    726                         libtrace_message_queue_destroy(&libtrace->perpkt_threads[i].messages);
    727                 }
    728                 libtrace_message_queue_destroy(&libtrace->hasher_thread.messages);
    729                 libtrace_message_queue_destroy(&libtrace->keepalive_thread.messages);
    730                 libtrace_message_queue_destroy(&libtrace->reporter_thread.messages);
     726                        libtrace_message_queue_destroy(&libtrace->perpkt_threads[i].messages);
     727                }
     728                if (libtrace->hasher_thread.type == THREAD_HASHER)
     729                        libtrace_message_queue_destroy(&libtrace->hasher_thread.messages);
     730                if (libtrace->keepalive_thread.type == THREAD_KEEPALIVE)
     731                        libtrace_message_queue_destroy(&libtrace->keepalive_thread.messages);
     732                if (libtrace->reporter_thread.type == THREAD_REPORTER)
     733                        libtrace_message_queue_destroy(&libtrace->reporter_thread.messages);
    731734
    732735
Note: See TracChangeset for help on using the changeset viewer.