mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-23 11:54:33 +00:00
The caller of sensors_yylex() is responsible for free()'ing NAME strings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4274 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a938571fc5
commit
c510d7934f
1 file changed
+2
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../data.h"
|
||||
#include "../conf.h"
|
||||
@@ -82,6 +83,7 @@ int main(void)
|
||||
|
||||
case NAME:
|
||||
printf("NAME: %s\n", sensors_yylval.name);
|
||||
free(sensors_yylval.name);
|
||||
break;
|
||||
|
||||
case ERROR:
|
||||
|
||||
Reference in new issue
Block a user