File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ void q_sort(struct list_head *head, bool descend);
207207 *
208208 * No effect if queue is NULL or empty. If there has only one element, do
209209 * nothing.
210+ * Memory allocated to removed nodes must be freed.
210211 *
211212 * Reference:
212213 * https://leetcode.com/problems/remove-nodes-from-linked-list/
@@ -222,6 +223,7 @@ int q_ascend(struct list_head *head);
222223 *
223224 * No effect if queue is NULL or empty. If there has only one element, do
224225 * nothing.
226+ * Memory allocated to removed nodes must be freed.
225227 *
226228 * Reference:
227229 * https://leetcode.com/problems/remove-nodes-from-linked-list/
Original file line number Diff line number Diff line change 1- 186d420b53e21c6daf8eabe980a5b90780c53bcd queue.h
1+ db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h
223337dbccc33eceedda78e36cc118d5a374838ec7 list.h
You can’t perform that action at this time.
0 commit comments