paleofetch

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 38253f89c61aab49d21ca13c8292fd8ce4d9d9e0
parent 818d6048e9c90dd00739c2be90e884a91218a6b7
Author: dwzg <dennis@wtzg.de>
Date:   Thu, 23 Apr 2020 16:05:16 +0200

Fix memory leak when skipping empty values

Diffstat:
Mpaleofetch.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/paleofetch.c b/paleofetch.c @@ -537,6 +537,7 @@ int main(int argc, char *argv[]) { } else { if (strcmp(label, "") != 0) { // check if label is empty, otherwise it's a spacer ++offset; // print next line of information + free(value); // free memory allocated for empty value label = config[i+offset].label; // read new label and value value = get_value(config[i+offset], read_cache, cache_data); }