]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r4301: One more *alloc -> SMB_MALLOC (not compiled by default).
authorJeremy Allison <jra@samba.org>
Tue, 21 Dec 2004 01:04:11 +0000 (01:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:43 +0000 (10:53 -0500)
Jeremy.

source/smbd/quotas.c

index 3c4d4319f637c6ee3797f1f0def14b68d8f19f8f..a96f50ad02f4f9e7b7cb8b9baf3b7f8452c72e39 100644 (file)
@@ -471,7 +471,7 @@ static BOOL nfs_quotas(char *nfspath, uid_t euser_id, SMB_BIG_UINT *bsize, SMB_B
 
        len=strcspn(mnttype, ":");
        pathname=strstr(mnttype, ":");
-       cutstr = (char *) malloc(len+1);
+       cutstr = (char *) SMB_MALLOC(len+1);
        if (!cutstr)
                return False;
 
@@ -1000,7 +1000,7 @@ static BOOL nfs_quotas(char *nfspath, uid_t euser_id, SMB_BIG_UINT *bsize, SMB_B
 
        len=strcspn(mnttype, ":");
        pathname=strstr(mnttype, ":");
-       cutstr = (char *) malloc(len+1);
+       cutstr = (char *) SMB_MALLOC(len+1);
        if (!cutstr)
                return False;