Skip to content

Commit 45905fa

Browse files
author
Arto Kinnunen
authored
Update DHCP service memory allocation (ARMmbed#1734)
Do not use temporary heap for dhcp server instance as it may live rather long time.
1 parent 3f905a1 commit 45905fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/libDHCPv6/dhcp_service_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ uint16_t dhcp_service_init(int8_t interface_id, dhcp_instance_type_e instance_ty
369369
break;
370370
}
371371
}
372-
srv_ptr = ns_dyn_mem_temporary_alloc(sizeof(server_instance_t));
372+
srv_ptr = ns_dyn_mem_alloc(sizeof(server_instance_t));
373373
if (id == MAX_SERVERS || srv_ptr == NULL) {
374374
tr_error("Out of server instances");
375375
ns_dyn_mem_free(srv_ptr);

0 commit comments

Comments
 (0)