aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-08 15:51:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-08 15:51:23 +0000
commitb4fe09ac6741b80a3b33447658f634724d585a86 (patch)
treeaa5282e41a73f502ff3cf6e4b10470ab76f0696f /URPM.xs
parent0fd99f1a9ea313dfecd442755a4c20f58106cee7 (diff)
downloadperl-URPM-b4fe09ac6741b80a3b33447658f634724d585a86.tar
perl-URPM-b4fe09ac6741b80a3b33447658f634724d585a86.tar.gz
perl-URPM-b4fe09ac6741b80a3b33447658f634724d585a86.tar.bz2
perl-URPM-b4fe09ac6741b80a3b33447658f634724d585a86.tar.xz
perl-URPM-b4fe09ac6741b80a3b33447658f634724d585a86.zip
Fix small memleak on db open error
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
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