From: Eric Bollengier Date: Thu, 12 May 2016 13:54:29 +0000 (+0200) Subject: Modify the alist object to be reused after a destroy() X-Git-Tag: Release-7.4.1~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fb4f2fb66e8bc67bd4e07202d9517a92e7e830b9;p=bacula%2Fbacula Modify the alist object to be reused after a destroy() --- diff --git a/bacula/src/lib/alist.c b/bacula/src/lib/alist.c index 132d1a0a63..ff88cf5866 100644 --- a/bacula/src/lib/alist.c +++ b/bacula/src/lib/alist.c @@ -148,6 +148,9 @@ void alist::destroy() free(items); items = NULL; } + num_items = 0; + max_items = 0; + num_grow = 0; } #ifdef TEST_PROGRAM