Skip to content

Commit 9787a03

Browse files
committed
Resolve a conflict from last merge
1 parent 27d9db5 commit 9787a03

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

auparse/interpret.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,12 @@ const char *_auparse_lookup_interpretation(auparse_state_t *au,const char *name)
517517

518518
void free_interpretation_list(auparse_state_t *au)
519519
{
520-
nvlist_clear(&il, 0);
521-
il.cnt = NEVER_LOADED;
520+
nvlist *il = &au->interpretations;
521+
522+
if (il->cnt != NEVER_LOADED || il->array) {
523+
nvlist_clear(il, 0);
524+
il->cnt = NEVER_LOADED;
525+
}
522526
}
523527

524528
// This uses a sentinel to determine if the list has ever been loaded.

0 commit comments

Comments
 (0)