diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 15:51:02 +0100 |
---|---|---|
committer | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 15:52:15 +0100 |
commit | 20d5fb340c6ad1e7b16c6dc17e3f6c364a5a5515 (patch) | |
tree | 3b8966f7eaa6855c0718b52437a374b710a51eca /tbdiff/tbdiff-stat.c | |
parent | 485e76fea076b2a5f0efeab3ac7f98037f4e00c0 (diff) | |
parent | fb454c327097dda283c35a911fef141382aa383f (diff) | |
download | tbdiff-20d5fb340c6ad1e7b16c6dc17e3f6c364a5a5515.tar.gz |
Merge branch 'baserock/benbrewer/overhaul-v2'
Reviewed-by: Richard Maw
Reviewed-by: Lars Wirzenius
Diffstat (limited to 'tbdiff/tbdiff-stat.c')
-rw-r--r-- | tbdiff/tbdiff-stat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tbdiff/tbdiff-stat.c b/tbdiff/tbdiff-stat.c index fd8964e..66e2caf 100644 --- a/tbdiff/tbdiff-stat.c +++ b/tbdiff/tbdiff-stat.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Codethink Ltd. + * Copyright (C) 2011-2014 Codethink Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as @@ -144,8 +144,10 @@ tbd_stat_entry(tbd_stat_t *file, uint32_t entry) closedir (dp); char *spath = tbd_stat_subpath(file, name); - if(spath == NULL) + if(spath == NULL) { + free(name); return NULL; + } tbd_stat_t *ret = tbd_stat_from_path(name, (const char*)spath); |