Commit 9d374cd4 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

fix micro memleak in some error path

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 2a780782
...@@ -812,6 +812,7 @@ static int w_update_odbm(struct drbd_conf *mdev, struct drbd_work *w, int unused ...@@ -812,6 +812,7 @@ static int w_update_odbm(struct drbd_conf *mdev, struct drbd_work *w, int unused
if (!get_ldev(mdev)) { if (!get_ldev(mdev)) {
if (__ratelimit(&drbd_ratelimit_state)) if (__ratelimit(&drbd_ratelimit_state))
dev_warn(DEV, "Can not update on disk bitmap, local IO disabled.\n"); dev_warn(DEV, "Can not update on disk bitmap, local IO disabled.\n");
kfree(udw);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment