summaryrefslogtreecommitdiff
path: root/dpkg-split/split.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-04-28 21:20:16 +0200
committerGuillem Jover <guillem@debian.org>2014-04-30 06:47:33 +0200
commit3c05293dac0e485b8042cbdef82f3369fb751595 (patch)
treee9a6bb0e96553a11a4cc49f8a158b0817a366a83 /dpkg-split/split.c
parentdd0ec1036fb5fdf8b0462edf357d72d491b3c8aa (diff)
downloaddpkg-3c05293dac0e485b8042cbdef82f3369fb751595.tar.gz
dpkg-split: Fix short lived memory leaks in mksplit()
Warned-by: coverity
Diffstat (limited to 'dpkg-split/split.c')
-rw-r--r--dpkg-split/split.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index b886f2a51..37cbb93f4 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -234,6 +234,10 @@ mksplit(const char *file_src, const char *prefix, off_t maxpartsize,
varbuf_destroy(&partname);
varbuf_destroy(&partmagic);
+ free(package);
+ free(version);
+ free(arch);
+
free(prefixdir);
free(msdos_prefix);