aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/message-file.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-17 08:50:14 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-17 08:50:14 -0800
commit0dab6a2c1e8b59ac681f48417c0f06e88f73cd3e (patch)
tree7df803a39e69c138be9572d601ff0b22c6951493 /lib/message-file.c
parent6b135cae1e6e29a5ce8d8acb0cde2b50628ab8f1 (diff)
add_message: Avoid a memory leak when user holds on to message return.
When this function was originally written, the 'message' object was always destroyed locally, so I thought it would be good to use a NULL talloc context to make it more obvious if there was any leak. Since then, however, this function has been changed to optionally return the added message, and in that case we *don't* free the message locally, so let's let the database be the talloc context.
Diffstat (limited to 'lib/message-file.c')
0 files changed, 0 insertions, 0 deletions