fix leaks
[m6w6/ext-psi] / src / error.c
index 50ca0926346309e517e0a87d0034ce217d1fce01..8abb68695ea294c3b1b35175d2fb0a080978f29b 100644 (file)
@@ -78,10 +78,10 @@ void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type,
        va_end(argv);
 
        va_start(argv, msg);
        va_end(argv);
 
        va_start(argv, msg);
-       psi_debug_lock(context);
-       PSI_DEBUG_PRINTV(context, msg, argv);
-       PSI_DEBUG_PRINT(context, "\n");
-       psi_debug_unlock(context);
+       PSI_DEBUG_LOCK(context,
+                       PSI_DEBUG_PRINTV(context, msg, argv);
+                       PSI_DEBUG_PRINT(context, "\n");
+       );
        va_end(argv);
 
        if (context) {
        va_end(argv);
 
        if (context) {