You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If realloc() fails, it returns NULL and the original block of memory is left untouched; it is not freed or moved.
In our case, we lost the reference to the original block of memory and it is not freed, causing a memory leak. This happens if there is an error, for example when the host is out of memory.
If
realloc()
fails, it returns NULL and the original block of memory is left untouched; it is not freed or moved.In our case, we lost the reference to the original block of memory and it is not freed, causing a memory leak. This happens if there is an error, for example when the host is out of memory.
mini-snmpd/mib.c
Lines 104 to 106 in 45765e3
If this happens, it is recommended to free the original block of memory, or keep
data->buffer
unchanged.The text was updated successfully, but these errors were encountered: