about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_account.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 18:53:16 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 18:53:16 +0200
commit1746f5f8a80f78a02f79a9a17f29ebb0a7b179ec (patch)
treefea9078439ed7e2fb52790ae0f693db396e22e57 /tests/unittests/test_cmd_account.c
parent3ce27b47ad815107600c17539ae658c4c073c6de (diff)
downloadprofani-tty-1746f5f8a80f78a02f79a9a17f29ebb0a7b179ec.tar.gz
Fix memleak in cmd_join
Free `room` string in case we allocated it ourselves.

Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests/unittests/test_cmd_account.c')
0 files changed, 0 insertions, 0 deletions
akkartik/mu/blame/global.mu?h=hlt&id=27ba0937a3747684f299bb7a8b3cdd0fbb689db3'>^
fc2046a1 ^
455fbac6 ^
fc2046a1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                      
          
                                    
                                                                    
                                          
                                 


     
         
                                
                                          
 
# example program: creating and using global variables

def main [
  # allocate 5 locations for globals
  global-space:address:shared:array:location <- new location:type, 5
  # read to globals by using /space:global
  1:number/space:global <- copy 3
  foo
]

def foo [
  # ditto for writing to globals
  $print 1:number/space:global, 10/newline
]