diff -r aa3baf1dd81b -r a7c48e0dca88 dav/main.c --- a/dav/main.c Fri Aug 02 21:40:05 2019 +0200 +++ b/dav/main.c Fri Aug 02 22:04:00 2019 +0200 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2018 Olaf Wintermann. All rights reserved. + * Copyright 2019 Olaf Wintermann. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -89,6 +89,7 @@ return -1; } + sys_init(); xmlGenericErrorFunc fnc = xmlerrorfnc; initGenericErrorDefaultFunc(&fnc); ctx = dav_context_new(); @@ -211,6 +212,7 @@ free_config(); xmlCleanupParser(); curl_global_cleanup(); + sys_uninit(); return ret; }