diff options
Diffstat (limited to 'drivers/isdn/i4l/isdn_bsdcomp.c')
| -rw-r--r-- | drivers/isdn/i4l/isdn_bsdcomp.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c index baf4bcad9bf9..0afe442db3b0 100644 --- a/drivers/isdn/i4l/isdn_bsdcomp.c +++ b/drivers/isdn/i4l/isdn_bsdcomp.c | |||
| @@ -283,23 +283,19 @@ static void bsd_free (void *state) | |||
| 283 | /* | 283 | /* |
| 284 | * Release the dictionary | 284 | * Release the dictionary |
| 285 | */ | 285 | */ |
| 286 | if (db->dict) { | 286 | vfree(db->dict); |
| 287 | vfree (db->dict); | 287 | db->dict = NULL; |
| 288 | db->dict = NULL; | ||
| 289 | } | ||
| 290 | 288 | ||
| 291 | /* | 289 | /* |
| 292 | * Release the string buffer | 290 | * Release the string buffer |
| 293 | */ | 291 | */ |
| 294 | if (db->lens) { | 292 | vfree(db->lens); |
| 295 | vfree (db->lens); | 293 | db->lens = NULL; |
| 296 | db->lens = NULL; | ||
| 297 | } | ||
| 298 | 294 | ||
| 299 | /* | 295 | /* |
| 300 | * Finally release the structure itself. | 296 | * Finally release the structure itself. |
| 301 | */ | 297 | */ |
| 302 | kfree (db); | 298 | kfree(db); |
| 303 | } | 299 | } |
| 304 | } | 300 | } |
| 305 | 301 | ||
