aboutsummaryrefslogtreecommitdiff
path: root/src/pj_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_malloc.c')
-rw-r--r--src/pj_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_malloc.c b/src/pj_malloc.c
index cfb7f658..73a60599 100644
--- a/src/pj_malloc.c
+++ b/src/pj_malloc.c
@@ -182,7 +182,7 @@ void pj_free(PJ *P) {
/* to be called as the last step of the local destructor */
/* pointed to by P->destructor. In most cases, */
/* pj_default_destructor actually *is* what is pointed to */
- P->destructor (P, 0);
+ P->destructor (P, proj_errno(P));
}