diff options
author | Jack Magne <jmagne@dhcp-32-224.sjc.redhat.com> | 2012-12-06 11:20:55 -0800 |
---|---|---|
committer | Jack Magne <jmagne@dhcp-32-224.sjc.redhat.com> | 2012-12-06 11:33:39 -0800 |
commit | 6180bb1b8a450d0e69d10c5e9bd85996e2858599 (patch) | |
tree | 3f52cb9fd264b53684ac1bb949967eea09c0b1b7 /base/tps/src/tus/tus_db.c | |
parent | cd279e34b5d92ff8fe53e79c974baf9972221748 (diff) | |
download | pki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.tar.gz pki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.tar.xz pki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.zip |
Latest TPS memory related fixes.
Diffstat (limited to 'base/tps/src/tus/tus_db.c')
-rw-r--r-- | base/tps/src/tus/tus_db.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/tps/src/tus/tus_db.c b/base/tps/src/tus/tus_db.c index 9ae451415..0fb9e3635 100644 --- a/base/tps/src/tus/tus_db.c +++ b/base/tps/src/tus/tus_db.c @@ -3718,6 +3718,8 @@ struct berval **get_attribute_values(LDAPMessage *entry, const char *attribute) c++; } ret = (struct berval **) malloc ((sizeof (struct berval *) * c) + 1); + + ret = (struct berval **) calloc (sizeof (struct berval *), (c + 1)); for (i=0; i< c; i++) { ret[i] = (struct berval *) malloc(sizeof(struct berval)); } |