commit | 495c946d1b424a502970e3890a907eb260c2e1d8 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Jan 15 11:27:43 2016 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jan 15 11:27:43 2016 +0100 |
tree | 83e9b65c04d0d544ac20f1ffed17eb5f035e80eb | |
parent | 06e2243fd7564f7c822aacb5e9318874753b5f21 [diff] [blame] |
messages CHANGE messages.* removed
diff --git a/src/messages_client.c b/src/messages_client.c index dfc7485..3a670c0 100644 --- a/src/messages_client.c +++ b/src/messages_client.c
@@ -627,3 +627,15 @@ free(reply); } + +API void +nc_notif_free(struct nc_notif *notif) +{ + if (!notif) { + return; + } + + lydict_remove(notif->tree->schema->module->ctx, notif->datetime); + lyd_free(notif->tree); + free(notif); +}