From 0fda5c4e9802a88a48a51086b27b0915d1a34726 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 Jul 2008 15:45:59 +0200 Subject: document that changing _freeanswer() to wildly would be considered ABI/API breakage --- libasyncns/asyncns.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libasyncns/asyncns.c b/libasyncns/asyncns.c index f8c5f46..bc546f4 100644 --- a/libasyncns/asyncns.c +++ b/libasyncns/asyncns.c @@ -1455,6 +1455,11 @@ void asyncns_freeanswer(unsigned char *answer) { if (!answer) return; + /* Please note that this function is new in libasyncns 0.4. In + * older versions you were supposed to free the answer directly + * with free(). Hence, if this function is changed to do more than + * just a simple free() this must be considered ABI/API breakage! */ + free(answer); errno = saved_errno; -- cgit