From b4fe09ac6741b80a3b33447658f634724d585a86 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 8 Mar 2006 15:51:23 +0000 Subject: Fix small memleak on db open error --- URPM.xs | 1 + 1 file changed, 1 insertion(+) diff --git a/URPM.xs b/URPM.xs index 612d053..c2b8ecc 100644 --- a/URPM.xs +++ b/URPM.xs @@ -2640,6 +2640,7 @@ Db_open(prefix="", write_perm=0) } else { RETVAL = NULL; rpmtsFree(db->ts); + free(db); } OUTPUT: RETVAL -- cgit v1.2.1