diff options
author | 2015-12-06 08:20:40 -0500 | |
---|---|---|
committer | 2015-12-06 08:20:40 -0500 | |
commit | bf768f5273ffc3c3bc6febb8f4eaec5bd7ade1fb (patch) | |
tree | 15f219966869b778e5a6abb89c782b57d68dc486 | |
parent | recently-used.xbel fix (diff) | |
download | firejail-bf768f5273ffc3c3bc6febb8f4eaec5bd7ade1fb.tar.gz firejail-bf768f5273ffc3c3bc6febb8f4eaec5bd7ade1fb.tar.zst firejail-bf768f5273ffc3c3bc6febb8f4eaec5bd7ade1fb.zip |
malloc memory fix
-rw-r--r-- | src/firejail/fs_whitelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 2a4fc5993..37894fee1 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -46,13 +46,13 @@ static char *resolve_downloads(void) { | |||
46 | errExit("asprintf"); | 46 | errExit("asprintf"); |
47 | 47 | ||
48 | if (stat(fname, &s) == 0) { | 48 | if (stat(fname, &s) == 0) { |
49 | free(fname); | ||
50 | if (arg_debug) | 49 | if (arg_debug) |
51 | printf("Downloads directory resolved as \"%s\"\n", fname); | 50 | printf("Downloads directory resolved as \"%s\"\n", fname); |
52 | 51 | ||
53 | char *rv; | 52 | char *rv; |
54 | if (asprintf(&rv, "whitelist ~/%s", dentry[i]) == -1) | 53 | if (asprintf(&rv, "whitelist ~/%s", dentry[i]) == -1) |
55 | errExit("asprintf"); | 54 | errExit("asprintf"); |
55 | free(fname); | ||
56 | return rv; | 56 | return rv; |
57 | } | 57 | } |
58 | free(fname); | 58 | free(fname); |