Skip to content

Commit 2ee581b

Browse files
committed
libsnmp: Fix a memory leak in the MIB parser
Fixes: https://issues.oss-fuzz.com/issues/383154227
1 parent 2e98a91 commit 2ee581b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snmplib/parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2914,6 +2914,7 @@ parse_notificationDefinition(FILE * fp, char *name)
29142914
print_error("Bad REFERENCE", quoted_string_buffer, type);
29152915
goto free_node;
29162916
}
2917+
free(np->reference);
29172918
np->reference = strdup(quoted_string_buffer);
29182919
break;
29192920
case OBJECTS:

0 commit comments

Comments
 (0)