Moved free(info) out of the block that was checking to see if the input is a block device.
Changed constness of base_name return value to keep gcc on Linux happy.
Added freeing of the buf member to syncqueue_destroy()
Fixed memory leak associated with the tokenarray in processSearchSpecLine and moved exception throwing after cleanup function calls.
Fixed a memory leak and added a hack to kill processing threads.