Fix FREEV() when v is NULL.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@915 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
c5a320988e
commit
1e09705bd7
|
@ -161,11 +161,11 @@ pam_module_t *openpam_dynamic(const char *)
|
||||||
|
|
||||||
#define FREEV(c, v) \
|
#define FREEV(c, v) \
|
||||||
do { \
|
do { \
|
||||||
while (c) { \
|
if ((v) != NULL) { \
|
||||||
--(c); \
|
while ((c)-- > 0) \
|
||||||
FREE((v)[(c)]); \
|
FREE((v)[(c)]); \
|
||||||
|
FREE(v); \
|
||||||
} \
|
} \
|
||||||
FREE(v); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#include "openpam_constants.h"
|
#include "openpam_constants.h"
|
||||||
|
|
Loading…
Reference in New Issue