projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system-linux: Fix memory leak
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index 909ba0fec65399f28df1c55eedef6ada80e49d90..9978ade5046da28dd78ec261bfda97d8a923288f 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-1140,6
+1140,8
@@
system_if_set_rps_xps_val(const char *path, int val)
snprintf(val_buf, sizeof(val_buf), "%x", val);
for (i = 0; i < gl.gl_pathc; i++)
system_set_sysctl(gl.gl_pathv[i], val_buf);
+
+ globfree(&gl);
}
static void