poprouting: fix a resource leak
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 24 Nov 2019 09:51:28 +0000 (10:51 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 24 Nov 2019 10:18:27 +0000 (11:18 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/poprouting/src/olsrd_poprouting.c

index cc54734..fcf10c4 100644 (file)
@@ -83,6 +83,7 @@ bool isCommand(const char *str, unsigned long long siw) {
       break;
 
     default:
+      free(string);
       return false;
   }
   cmd = strtok(string, s);