Skip to content

Commit 79efbb1

Browse files
committed
Fix leak in snmp
1 parent 7b0a053 commit 79efbb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/snmp/snmp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ static void php_snmp_internal(INTERNAL_FUNCTION_PARAMETERS, int st,
490490
if (st & SNMP_CMD_SET) {
491491
if (objid_query->offset < objid_query->count) { /* we have unprocessed OIDs */
492492
keepwalking = 1;
493+
snmp_free_pdu(response);
493494
continue;
494495
}
495496
snmp_free_pdu(response);

0 commit comments

Comments
 (0)