diff options
Diffstat (limited to 'net/netlabel')
-rw-r--r-- | net/netlabel/netlabel_kapi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/netlabel/netlabel_kapi.c b/net/netlabel/netlabel_kapi.c index b0e582f2d37a..3ff6f325be3f 100644 --- a/net/netlabel/netlabel_kapi.c +++ b/net/netlabel/netlabel_kapi.c | |||
@@ -185,8 +185,7 @@ int netlbl_cfg_unlbl_map_add(const char *domain, | |||
185 | return 0; | 185 | return 0; |
186 | 186 | ||
187 | cfg_unlbl_map_add_failure: | 187 | cfg_unlbl_map_add_failure: |
188 | if (entry != NULL) | 188 | kfree(entry->domain); |
189 | kfree(entry->domain); | ||
190 | kfree(entry); | 189 | kfree(entry); |
191 | kfree(addrmap); | 190 | kfree(addrmap); |
192 | kfree(map4); | 191 | kfree(map4); |
@@ -385,8 +384,7 @@ int netlbl_cfg_cipsov4_map_add(u32 doi, | |||
385 | 384 | ||
386 | cfg_cipsov4_map_add_failure: | 385 | cfg_cipsov4_map_add_failure: |
387 | cipso_v4_doi_putdef(doi_def); | 386 | cipso_v4_doi_putdef(doi_def); |
388 | if (entry != NULL) | 387 | kfree(entry->domain); |
389 | kfree(entry->domain); | ||
390 | kfree(entry); | 388 | kfree(entry); |
391 | kfree(addrmap); | 389 | kfree(addrmap); |
392 | kfree(addrinfo); | 390 | kfree(addrinfo); |