[Libpst-commits] r45 - trunk
Joseph Nahmias
jello at costa.debian.org
Tue Apr 25 20:21:48 UTC 2006
Author: jello
Date: 2006-04-25 20:21:46 +0000 (Tue, 25 Apr 2006)
New Revision: 45
Modified:
trunk/libpst.c
Log:
Memory leak fixes from Nigel Horne <njh at bandsman.co.uk>
Modified: trunk/libpst.c
===================================================================
--- trunk/libpst.c 2006-04-25 17:11:44 UTC (rev 44)
+++ trunk/libpst.c 2006-04-25 20:21:46 UTC (rev 45)
@@ -1405,6 +1405,8 @@
} else {
WARN(("Missing code for block_type %i\n", block_type));
if (buf) free(buf);
+ if (na_head)
+ _pst_free_list(na_head);
DEBUG_RET();
return NULL;
}
@@ -1548,6 +1550,8 @@
na_ptr->items[x]->type = table_rec.ref_type;
} else {
WARN(("ERROR Unknown ref_type %#x\n", table_rec.ref_type));
+ if (na_head)
+ _pst_free_list(na_head);
DEBUG_RET();
return NULL;
}
More information about the Libpst-commits
mailing list