Commit 3c31474c authored by Scott Vokes's avatar Scott Vokes
Browse files

Ensure FD metadata storage is freed on message bus teardown.

parent 8efd3fa0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -657,6 +657,7 @@ void bus_free(bus *b) {

    free(b->joined);
    free(b->threads);
    yacht_free(b->fd_set, NULL, NULL);

    pthread_mutex_destroy(&b->log_lock);

+2 −0
Original line number Diff line number Diff line
@@ -236,6 +236,8 @@ void yacht_free(struct yacht *y, yacht_free_cb *cb, void *udata) {
                cb(y->values[i], udata);
            }
        }
        free(y->buckets);
        free(y->values);
        free(y);
    }
}