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:
Mark M. Hoffman committed 2006-12-30 04:43:37 +00:00
1 parent a938571fc5
commit c510d7934f
1 file changed
+2
+2
View File
@@ -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: