aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/registry/reg_dump.c
diff options
context:
space:
mode:
authorChristian von Roques <[email protected]>2011-08-08 16:33:05 +0200
committerChristian von Roques <[email protected]>2011-09-06 20:06:45 +0200
commitef757a19bdab06e29dcc29de32ef7b8202f2e68d (patch)
tree5bc7e8ed5c3cbca7d7a4bfc37430d5af833aeee8 /lib/erl_interface/src/registry/reg_dump.c
parent22dae863060e0d66fa268f6d1cd4d6f084b850ab (diff)
downloadotp-ef757a19bdab06e29dcc29de32ef7b8202f2e68d.tar.gz
otp-ef757a19bdab06e29dcc29de32ef7b8202f2e68d.tar.bz2
otp-ef757a19bdab06e29dcc29de32ef7b8202f2e68d.zip
Changes inspired by running cppcheck(1)
Diffstat (limited to 'lib/erl_interface/src/registry/reg_dump.c')
-rw-r--r--lib/erl_interface/src/registry/reg_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/erl_interface/src/registry/reg_dump.c b/lib/erl_interface/src/registry/reg_dump.c
index 1e640fb506..d2854c10b5 100644
--- a/lib/erl_interface/src/registry/reg_dump.c
+++ b/lib/erl_interface/src/registry/reg_dump.c
@@ -215,6 +215,7 @@ static int mn_send_write(int fd, erlang_pid *mnesia, const char *key, ei_reg_obj
else ei_encode_long(msgbuf,&index,(long)(obj->val.p)); /* just the pointer */
break;
default:
+ if (dbuf) free(dbuf);
return -1;
}