summaryrefslogtreecommitdiffstats
path: root/src/util/pacsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pacsort.c')
-rw-r--r--src/util/pacsort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 665f2180..02b9084b 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -1,7 +1,7 @@
/*
* pacsort.c - a sort utility implementing alpm_pkg_vercmp
*
- * Copyright (c) 2010-2014 Pacman Development Team <pacman-dev@archlinux.org>
+ * Copyright (c) 2010-2015 Pacman Development Team <pacman-dev@archlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -227,6 +227,7 @@ static struct input_t *input_new(const char *path, int pathlen)
in->data = strndup(path, pathlen);
if(in->data == NULL) {
+ free(in);
return NULL;
}