]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/tal.h
io: fix another leak path for always array.
[ccan] / ccan / tal / tal.h
index 54318e1fa116864ae5d00268b9d6c3144ba86eb3..e25dcb92985922acc5a50007f5c397ddb4aa9237 100644 (file)
@@ -106,6 +106,9 @@ void *tal_free(const tal_t *p);
  * This returns true on success (and may move *@p), or false on failure.
  * On success, tal_count() of *@p will be @count.
  *
+ * Note: if *p is take(), it will still be take() upon return, even if it
+ * has been moved.
+ *
  * Example:
  *     tal_resize(&p, 100);
  */
@@ -227,7 +230,7 @@ enum tal_notify_type {
 
 /**
  * tal_add_notifier - add a callback function when this context changes.
- * @ptr: The tal allocated object.
+ * @ptr: The tal allocated object, or NULL.
  * @types: Bitwise OR of the types the callback is interested in.
  * @callback: the function to call.
  *