diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-08-25 06:56:09 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-08-25 10:03:03 -0700 |
| commit | c17d1cfebc016ed790df74f0eeb539a4a71fadda (patch) | |
| tree | 4b5eeee07ae35c1d25adc2bb8575c115b92f05ec /src/core/dialer.c | |
| parent | b1ece6af107958d9d3935586778184763a44f5ee (diff) | |
| download | nng-c17d1cfebc016ed790df74f0eeb539a4a71fadda.tar.gz nng-c17d1cfebc016ed790df74f0eeb539a4a71fadda.tar.bz2 nng-c17d1cfebc016ed790df74f0eeb539a4a71fadda.zip | |
fixes #2148 Old id_reg_map seems not be freed
This simplifies the code to just use a precompiled static list.
This should be lighter weight, and provably free from leaks.
Diffstat (limited to 'src/core/dialer.c')
| -rw-r--r-- | src/core/dialer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c index e422c642..bef110d7 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -22,7 +22,7 @@ static void dialer_connect_start(nni_dialer *); static void dialer_connect_cb(void *); static void dialer_timer_cb(void *); -static nni_id_map dialers = NNI_ID_MAP_INITIALIZER(1, 0x7fffffff, 0); +static nni_id_map dialers = NNI_ID_MAP_INITIALIZER(1, 0x7fffffff, false); static nni_mtx dialers_lk = NNI_MTX_INITIALIZER; uint32_t |
