index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-03-23 15:28:48 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-03-23 16:55:52 -0500 |
commit | 1086950c82ab649ffc36a00cd8d343da376252fe (patch) | |
tree | ea3298b195122e928e10a1ea2f527e6577c3fe80 /lib/libalpm/backup.c | |
parent | 7995a25d0ed75968df72fcf65d231508417ec060 (diff) |
-rw-r--r-- | lib/libalpm/backup.c | 3 |
diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c index bedbe8c1..f89df55e 100644 --- a/lib/libalpm/backup.c +++ b/lib/libalpm/backup.c @@ -42,6 +42,9 @@ int _alpm_backup_split(const char *string, char **file, char **hash) if(ptr == NULL) { if(file) { *file = str; + } else { + /* don't need our dup as the fname wasn't requested, so free it */ + FREE(str); } return(0); } |