Skip to content

Commit d07c7fa

Browse files
committed
registry: Restore default libxml2 error handler after parsing
Leaving the custom error handler could have resulted in a crash after the context has been freed. Closes: #529
1 parent b888834 commit d07c7fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/registry.c

+1
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ parse(struct rxkb_context *ctx, const char *path,
12641264
success = true;
12651265
error:
12661266
xmlFreeDoc(doc);
1267+
xmlSetGenericErrorFunc(NULL, NULL);
12671268

12681269
return success;
12691270
}

0 commit comments

Comments
 (0)