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
Briefly looked up file consumer and noticed the possibility of the memory leak. I suppose message_free should also free the related data. For example the memory allocated by getline assigned to data field, and it should be eventually freed in message_free.
Man says If *lineptr is set to NULL and *n is set 0 before the call, then getline() will allocate a buffer for storing the line. This buffer should be freed by the user program even if getline() failed.
Briefly looked up file consumer and noticed the possibility of the memory leak. I suppose
message_free
should also free the related data. For example the memory allocated bygetline
assigned todata
field, and it should be eventually freed inmessage_free
.Man says
If *lineptr is set to NULL and *n is set 0 before the call, then getline() will allocate a buffer for storing the line. This buffer should be freed by the user program even if getline() failed.
schaufel/src/queue.c
Line 56 in 78ee0e3
The text was updated successfully, but these errors were encountered: